iPhon開発(objective-C)で実行を遅らせる方法です。
PHPなどのsleep()のような動作を想定しています。
[NSThread sleepForTimeInterval:0.5];
上記のようにすることで、0.5秒遅らせることが可能になります。…
//セルが選択された際に呼び出される – (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { //選択されたセルを取得 UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath]; //セルにチェックが付いている場合はチェックを外し、付いていない場合はチェックを付ける if (cell.accessoryType == UITableViewCellAccessoryCheckmark) { cell.accessoryType = UITableViewCellAccessoryNone; } else { cell.accessoryType = UITableViewCellAccessoryCheckmark; } }
この投稿へのコメント
コメントはまだありません。