2012年02月02日12:42 カスタマイズしたUITableViewCellから自前のイベントを受け取る カテゴリ開発cocoa melodybox Comment(0)Trackback(0) 今回はカスタマイズしたUITableViewCell(サンプルとしてUISwitchを加えたもの)をUITableViewに追加した場合の、セル上にあるスイッチが切り替わった事をTableView側で感知する方法をご紹介しようと思います。 まずこのようなカスタマイズUITableViewCellを作ります。カスタマイズしたUITableViewクラスの名称は、「SwitchCell」とします。SwitchCellクラスのヘッダファイルは次のようになります。 @protocol SwitchCellDelegate // スイッチの切換えを通知する -(void) tableView:(UITa