###前提・実現したいこと
放置ゲームを製作中で、自動的に数が増えるプログラムが作りたいです。
その為にObjective-cのNSTimerを使いたいと思っています。
NSTimerの時間間隔がボタンを押す回数に応じて変化するようにするためにどうすればよろしいのでしょうか。
###発生している問題・エラーメッセージ
エラーメッセージ
###該当のソースコード
Objective
1 2 3 { 4 timer = [NSTimer scheduledTimerWithTimeInterval:0.3 5 target:self 6 selector:@selector(autoaddition1:) 7 userInfo:nil 8 repeats:YES]; 9} 10 11-(void)autoaddition1:(UIButton*)button{ 12 13 autocount = autocount + 1; 14 countLabelText = [NSString stringWithFormat:@"%d", count + autocount]; 15 [moneyValue setText: countLabelText]; 16 17} 18 19 20 21###試したこと 22課題に対してアプローチしたことを記載してください 23 24###補足情報(言語/FW/ツール等のバージョンなど) 25より詳細な情報
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。