我想给一个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