7
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

iPhoneとAndroidで同じ内容のプログラムを淡々とあげていく

7
Last updated at Posted at 2013-01-17

n秒後に処理を実行する

// 2秒後に、self の hoge を実行する。
[self performSelector:@selector(hoge) withObject:nil afterDelay:2.0];
// 上記の処理をキャンセルするには
[NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(hoge) object:nil];
// 2秒後に、thisのhogeを実行する
new Handler().postDelayed( new  Runnable() { 
@Override
public void run() {
hoge() ;
				}},
				2000);
7
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?