当我尝试这个时:
class MessagesViewController: UIViewController { ... }
它不会打印任何错误,但是当我使用它时:
class MessagesViewController: JSQMessagesViewController { ... }
它打印,即:
[JSQMessagesInputToolbar preferredDefaultHeight]: unrecognized selector sent to instance 0x7fd6aa6b5b20
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[JSQMessagesInputToolbar preferredDefaultHeight]: unrecognized selector sent to instance 0x7fd6aa6b5b20'
我不知道如何解决这个问题。有任何想法吗?