美文网首页iOS DeveloperiOS 开发
Attempting to load the view of a

Attempting to load the view of a

作者: 野狐大人 | 来源:发表于2016-07-26 11:20 被阅读92次

    使用UISearchBar的时候会出现这种错误

    ·在使用UISearchController的地方加上[_searchController loadViewIfNeeded];

    ·或者在dealloc方法中加上[_searchController.view.superview removeFromSuperview];解决

    相关文章

      网友评论

        本文标题:Attempting to load the view of a

        本文链接:https://www.haomeiwen.com/subject/ukynjttx.html