阅读背景:

Swift:对ViewController进行子类化并添加目标?

来源:互联网 

I am creating an app with swift and I subclassed a view controller in which I add a tap gesture recognizer and an NSNotification that listens for the keyboard appearing. I put the selector for the keyboardWillShow in a function in my base view controller. When I subclassed my view controller, however, and I had the keyboard show, my app terminated with an NSException that said that it could not find the selector. Can anyone explain why this happened and how I can fix it? I am creating an app with swift and I subclasse




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: