开发者

How do I get a keyboard to delay about 1/2s before showing?

I want to turn on editing mode and show a keyboard after a new view was pushed by a navigation controller. I looked at the Docs for NSTimer and they referred me to performSelector:withObject:afterDelay. For some reason I'm getting an exception. After scanning through related threads and trying a few different things I'开发者_JS百科m no further. Here's my code and stack trace.

The idea is to call showKeyboardForNewEquipment after a 1/2s delay in the viewDidLoad. That way it'll look pretty.

Thanks.

How do I get a keyboard to delay about 1/2s before showing?


It looks as though you misspelled showKeyboardForNewEquipment (the 'd' in "keyboard" is missing) in the @selector directive, which is why it's an unrecognized selector at runtime. Note that the compiler can't check this.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜