I want to invoke setEditing:animated:
on a table view with a slight delay. Normally, I'd use performSelector:withObject:afterDelay:
but
- pSwOaD only accepts one parameter
- the second parameter to
setEditing:animated:
is a primitive BOOL - not an object
In the past I would create a dummy method in my own class, like setTableAnimated
and then call [self performSelector:@selector(setTableAnimated) withObject:nil afterDelay:0.1f
but that feels kludgy to me.
Is there a better way to do it?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…