1、collectionview 默認(rèn)情況下围苫,無網(wǎng)絡(luò)或者顯示未達(dá)到一屏幕裤园,無法下拉刷新
解決:添加 self.mainCollectionView.alwaysBounceVertical = YES;
2、網(wǎng)絡(luò)請求的報錯信息:Request failed: unacceptable content-type: text/x-json"
解決:_sharedClient.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json", @"text/json", @"text/javascript",@"text/html",@"text/x-json", nil]; 加上@"text/x-json"這個格式的即可剂府。
3拧揽、 string isEqualToString:@“”報錯
解決:服務(wù)器返回的數(shù)據(jù)是number類型,接收到的是NSNumber類型腺占,用NSString stringwithformat:@"" 方法轉(zhuǎn)換
4强法、從其他項目拖入帶xib的文件,提示Could not load NIB in bundle:一個cell的文件
解決:xcode的右邊欄工具窗口打開在File inspector 中下面有個target membership 確保你的選擇框是選擇上
確保指向的target是打鉤的湾笛,是要用的那個target,尤其是多個target
5闰歪、用adhoc provisionprofile 打包上傳到蒲公英的時候提示不能安裝
解決:確認(rèn)設(shè)備的UDID號已經(jīng)添加到配置文件中嚎研,如果不確認(rèn)可以選擇selectAll 。
6、用163郵箱配置自動化打包的自動發(fā)送163郵箱報錯WARN: 535 Error: authentication failed
解決:設(shè)置->POP3/SMTP/IMAP临扮,用的是smtp.163.com,使用客服端授權(quán)密碼