在一个方法中,我想在n秒后调用一个方法:self.toolBarState=[NSNumbernumberWithInt:1];[selfchangeButtonNames];[selfdrawMap];[selfperformSelector:@selector(showActionSheet)withObject:nilafterDelay:2];我想在drawMap完成后2秒显示操作表。当我使用这个performSelector时,它永远不会调用。如果我只是放置[selfshowActionSheet];,它工作得很好。performSelector没有调用的原因是什么?编辑:在
在一个方法中,我想在n秒后调用一个方法:self.toolBarState=[NSNumbernumberWithInt:1];[selfchangeButtonNames];[selfdrawMap];[selfperformSelector:@selector(showActionSheet)withObject:nilafterDelay:2];我想在drawMap完成后2秒显示操作表。当我使用这个performSelector时,它永远不会调用。如果我只是放置[selfshowActionSheet];,它工作得很好。performSelector没有调用的原因是什么?编辑:在