【发布时间】:2011-03-06 13:21:32
【问题描述】:
我想在表格视图上调用setEditing:animated: 并稍有延迟。通常,我会使用 performSelector:withObject:afterDelay: 但是
- pSwOaD 只接受一个参数
-
setEditing:animated:的第二个参数是原始 BOOL - 不是对象
过去我会在自己的类中创建一个虚拟方法,例如setTableAnimated,然后调用[self performSelector:@selector(setTableAnimated) withObject:nil afterDelay:0.1f,但这对我来说感觉很笨拙。
有没有更好的方法?
【问题讨论】:
标签: iphone objective-c cocoa