国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統(tǒng) > iOS > 正文

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

2019-10-21 18:51:54
字體:
供稿:網(wǎng)友

iOS10 Xcode8問題匯總

【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】可以停止輸出打印此日志

遺留問題:還會(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)象 

iOS10,Xcode8,適配

 解決辦法:類庫增加判斷

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

【3】iOS10字體隱藏問題

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問題

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

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

【5】Xcode8注釋失效

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

【6】Xcode7 8兼容問題

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

iOS10,Xcode8,適配

刪除SB中代碼:

iOS10,Xcode8,適配

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

#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

以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持VEVB武林網(wǎng)。


注:相關(guān)教程知識(shí)閱讀請移步到IOS開發(fā)頻道。
發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 江川县| 孙吴县| 大关县| 观塘区| 门头沟区| 克什克腾旗| 修文县| 辽阳市| 三明市| 涿州市| 郴州市| 黎城县| 西峡县| 玉门市| 集安市| 泗阳县| 河源市| 白水县| 峡江县| 蓬莱市| 广丰县| 罗源县| 岢岚县| 龙里县| 高要市| 郧西县| 三河市| 黑水县| 泗水县| 横峰县| 宜宾县| 武强县| 桂平市| 道真| 商城县| 剑川县| 保德县| 大石桥市| 惠安县| 连云港市| 广灵县|