1

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

1 回答 1

0

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

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

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

于 2013-11-15T16:23:32.237 回答