我已经使用cocoapods安装了MWPhotoBrowser,但是我得到了以下错误:
/Users/noor/Documents/Apps/Info.mu.final/Pods/MWPhotoBrowser/MWPhotoBrowser/Classes/MWPhotoBrowser.m:182:14: Property 'automaticallyAdjustsScrollViewInsets' not found on object of type 'MWPhotoBrowser *'
/Users/noor/Documents/Apps/Info.mu.final/Pods/MWPhotoBrowser/MWPhotoBrowser/Classes/MWPhotoBrowser.m:392:17: No visible @interface for 'UIViewController' declares the selector 'prefersStatusBarHidden'
/Users/noor/Documents/Apps/Info.mu.final/Pods/MWPhotoBrowser/MWPhotoBrowser/Classes/MWPhotoBrowser.m:479:16: Property 'barTintColor' not found on object of type 'UINavigationBar *'; did you mean 'tintColor'?
/Users/noor/Documents/Apps/Info.mu.final/Pods/MWPhotoBrowser/MWPhotoBrowser/Classes/MWPhotoBrowser.m:492:79: Property 'barTintColor' not found on object of type 'UINavigationBar *'; did you mean 'tintColor'?
/Users/noor/Documents/Apps/Info.mu.final/Pods/MWPhotoBrowser/MWPhotoBrowser/Classes/MWPhotoBrowser.m:509:20: Property 'barTintColor' not found on object of type 'UINavigationBar *'; did you mean 'tintColor'?
/Users/noor/Documents/Apps/Info.mu.final/Pods/MWPhotoBrowser/MWPhotoBrowser/Classes/MWPhotoBrowser.m:1057:22: No visible @interface for 'MWPhotoBrowser' declares the selector 'setNeedsStatusBarAppearanceUpdate'我的Podfile包含:
platform :ios, '6.1'
pod 'MapBox'
pod 'MWPhotoBrowser'发布于 2013-11-16 00:23:32
automaticallyAdjustsScrollViewInsets、prefersStatusBarHidden和barTintColor仅在iOS7中提供。
因此删除'6.1‘并再次运行"pod install“。
试一试,然后告诉我它是否有效!
https://stackoverflow.com/questions/20003970
复制相似问题