最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

iOS10 Xcode8適配7個(gè)常見(jiàn)問(wèn)題匯總

 更新時(shí)間:2016年09月27日 09:36:11   作者:索馬里貓  
這篇文章主要為大家詳細(xì)匯總了iOS10 Xcode8適配7個(gè)常見(jiàn)問(wèn)題,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下

iOS10 Xcode8問(wèn)題匯總

【1】、Xcode8代碼出現(xiàn)ubsystem: com.apple.UIKit, category: HIDEventFiltered, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0 2016-09-14 17:18:55.843428 MyApp[6880:340837]

解決辦法: 【product】-【scheme】-【Edit Scheme】-【Run】-【Argument】-【Environment Variable】添加keyValue【OS_ACTIVITY_MODE   disable】可以停止輸出打印此日志

遺留問(wèn)題:還會(huì)出現(xiàn)Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x10a39a910) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x10a1c4210). One of the two will be used. Which one is undefined.

【2】MJRefresh出現(xiàn)崩潰現(xiàn)象 

 解決辦法:類庫(kù)增加判斷

if (range.location != NSNotFound) {
   language = [language substringToIndex:range.location];
} 

【3】iOS10字體隱藏問(wèn)題

label的話寫一個(gè)擴(kuò)展類

@implementation UILabel (Extend)
 
- (void)lableAdaptIOS10{
 
 CGFloat iOS10 = [[UIDevice currentDevice] systemVersion].floatValue >= 10;
 if (iOS10) {
//  self UIFont 的preferredFontForTextStyle: 意思是指定一個(gè)樣式,并讓字體大小符合用戶設(shè)定的字體大小。
  [self sizeToFit];
 
//  self.font =[UIFont preferredFontForTextStyle: UIFontTextStyleHeadline]; 
  //是否更新字體的變化
//  self.adjustsFontForContentSizeCategory = YES;
 }
}

 [4] StroyBoard問(wèn)題

<1>Xcode 打開SB頻繁出現(xiàn)崩潰現(xiàn)象

<2>Xcode 打開SB后 約束出現(xiàn)大量警告⚠️

【5】Xcode8注釋失效

打開終端,命令運(yùn)行: sudo /usr/libexec/xpccachectl 重啟電腦

【6】Xcode7 8兼容問(wèn)題

This version does not support documents saved in the Xcode 8 format. Open this document with Xcode 8.0 or later.

刪除SB中代碼:

【7】Xcode8不能真機(jī)打印log問(wèn)題

#ifdef DEBUG
#define HYString [NSString stringWithFormat:@"%s", __FILE__].lastPathComponent
#define HYLog(...) printf("%s 第%d行: %s\n\n", [HYString UTF8String] ,__LINE__, [[NSString stringWithFormat:__VA_ARGS__] UTF8String]);
 
#else
#define HYLog(...)
#endif

以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。

相關(guān)文章

最新評(píng)論

武城县| 西昌市| 云和县| 汝南县| 星座| 隆化县| 吴忠市| 元江| 靖远县| 六枝特区| 丰原市| 栾城县| 南陵县| 丰顺县| 花莲市| 昭平县| 白朗县| 丹江口市| 台东县| 固原市| 凯里市| 平利县| 沈丘县| 四川省| 班玛县| 交口县| 柏乡县| 从化市| 志丹县| 塔城市| 惠水县| 道孚县| 五常市| 隆德县| 宿松县| 康定县| 广灵县| 独山县| 北京市| 平阳县| 宁陵县|