// 設置狀態欄顏色
info.plist添加View controller-based status bar appearance設置為NO
在需要設置狀態欄樣式的地方加上(默認黑色)[UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleDefault;
(白色)[UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleLightContent;,也可以用一個view來改變StatusBar的背景色
// 對于無法訪問HTTP的連接
需要在在Info.plist中添加NSAppTransportSecurity類型Dictionary。在NSAppTransportSecurity下添加NSAllowsArbitraryLoads類型Boolean,值設為YES,不過以后要適配HTTPS了。
// 下面就簡單點啦
Localized resources can be mixed ? ?當我們訪問相冊相機的時候,進去里面是英文,設置這個為YES就可以變成中文啦!
NSPhotoLibraryUsageDescription ? ??App需要您的同意,才能訪問相冊
NSCameraUsageDescription ??App需要您的同意,才能訪問相機
NSMicrophoneUsageDescription ? ? ?App需要您的同意,才能訪問麥克風
NSLocationUsageDescription ? ? App需要您的同意,才能訪問位置
NSLocationWhenInUseUsageDescription ? ?App需要您的同意,才能在使用期間訪問位置
NSLocationAlwaysUsageDescription ? ? App需要您的同意,才能始終訪問位置
NSCalendarsUsageDescription ? ? ?App需要您的同意,才能訪問日歷
NSRemindersUsageDescription ? ? App需要您的同意,才能訪問提醒事項
NSMotionUsageDescription? ? ? App需要您的同意,才能訪問運動與健身
NSHealthUpdateUsageDescription ? ?App需要您的同意,才能訪問健康更新?
NSHealthShareUsageDescription ? ? App需要您的同意,才能訪問健康分享
NSBluetoothPeripheralUsageDescription ? ? App需要您的同意,才能訪問藍牙
NSAppleMusicUsageDescription ? ? ?App需要您的同意,才能訪問媒體資料庫
未完待續。。。。。。。