MWPhotoBrowser安装时出错

时间:2013-11-15 14:58:39

标签: ios mwphotobrowser

我使用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'

1 个答案:

答案 0 :(得分:0)

automaticAdjustsScrollViewInsets,prefersStatusBarHidden和barTintColor仅在iOS7中可用。

所以删除'6.1'并再次运行“pod install”。

试一试,告诉我它是否有效!