phpで少し時間をおいてから処理を実行したい場合は、sleepを使います。
例)
[php]<?php
echo "最初の処理";
//3秒後に実行
sleep(3);
//処理再開
echo "遅延後の処理";
?>[/php]
//セルが選択された際に呼び出される – (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { //選択されたセルを取得 UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath]; //セルにチェックが付いている場合はチェックを外し、付いていない場合はチェックを付ける if (cell.accessoryType == UITableViewCellAccessoryCheckmark) { cell.accessoryType = UITableViewCellAccessoryNone; } else { cell.accessoryType = UITableViewCellAccessoryCheckmark; } }
この投稿へのコメント
コメントはまだありません。