我有以下的NSTimer調用如何將參數傳遞給@selector()?
[NSTimer scheduledTimerWithTimeInterval:2.0
target:self
selector:@selector(panelVisibility:)
userInfo:nil
repeats:NO];
-(void)panelVisibility:(BOOL)visible{
...
}
,我需要一個布爾值傳遞給panelVisibility方法。我如何指定參數值?
也許這將有助於:http://stackoverflow.com/questions/1349740/arguments-in-selector – blindjesse