http://stackoverflow.com/questions/349858/fitting-a-uidatepicker-into-a-uiactionsheet
上記サイトの一番したのコメント内のコードが正常に動きます。
showInViewで設定するviewは以下のサイトを参考に
http://d.hatena.ne.jp/griffin-stewie/20090220/p1
//セルが選択された際に呼び出される – (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { //選択されたセルを取得 UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath]; //セルにチェックが付いている場合はチェックを外し、付いていない場合はチェックを付ける if (cell.accessoryType == UITableViewCellAccessoryCheckmark) { cell.accessoryType = UITableViewCellAccessoryNone; } else { cell.accessoryType = UITableViewCellAccessoryCheckmark; } }
graffiti on the web
この投稿へのコメント
コメントはまだありません。