作者icybleach (覚醒多面体)
看板MacDev
标题[问题] 关於 NSTimer
时间Tue Apr 14 07:41:46 2009
事情是这样的
昨天我跟着 icodeblog 的教学作了一遍
http://0rz.tw/v6GkV
但使用到 NSTimer 的时候发现
和影片中的 argument 明显不同
影片中的 NSTimer arguments:
[NSTimer scheduledTimerWithTimeInterval:target:selector:userInfo:repeats];
而电脑里出现的 NSTimer arguments则是:
[NSTimer scheduledTimerWithTimeInterval:invocation:repeats];
如果硬将影片中出现的 arguments 打入程式
则会出现 compile error 的情形
想请问各位板友
该如何使用影片中的 NSTimer arguments 呢?
谢谢 :D
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.157.119.219
1F:→ icybleach:突然可以了 ="= 我想是打错吧 Orz 04/14 10:14