一.错误:(运行到真机时遇到以下错误)
dyld: Library not loaded: @rpath/libswiftCore.dylib
介绍:模拟器运行没问题,手机运行遇到此错误;
解决:build setting里面设置 Embedded Content Contains Swift Code选项为Yes;
二.错误:(UISearchBar overlaps status bar in iOS)点击搜索栏和状态栏重合
解决:在ViewDidLoad中添加一句
self.edgesForExtendedLayout = UIRectEdgeNone;