我想給一個NSTimer參數。 timertocallguest是在.h中製作的NSTimer;NSTimer參數NSIndexPath
timertocallguest=[NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(gettheguestyouaskedforTOTURNON) userInfo:nil repeats:YES];
我該如何傳遞參數與選擇器? 在一些選擇器中,我可以在它後面添加withObject來給它提供參數..但是我不能在這裏做,我只是想給一個NSIndexPath帶上我調用的函數。
可以annyone幫助我嗎? Ty已經,
[將參數傳遞給NSTimer所調用的方法](http://stackoverflow.com/questions/4011297/passing-parameters-to-the-method-called-by-a-nstimer) – 2011-05-23 07:36:20