作者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