原创 Not saving crash log because we have reached the limit for logs to store on disk.解決辦法

一、問題簡述:Xcode, window》Devices》DEVICES選中自已的設備,打開控制檯:提示日誌存量已達限制,這個是系統拋出的log。"Not saving crash log because we have reached

原创 打開Voice Over時,CATextLayer的string對象兼容NSString和NSAttributedString導致的Crash(二解決思路1)

二、解決思路:利用Xcode符號斷點。crash堆棧裏面有一個很明顯的信息,即-[NSObject(NSObject) doesNotRecognizeSelector:],所以然後開着voice over,編譯真機運行Qzone,然後程

原创 NSDictionary writeToFile:atomically: 時失敗

一、現象:如下圖,當NSDictionary調用 writeToFile:atomically: 時,如果容器裏面包含的對象(即通過 objectForKey: 拿到的對象),爲非property list objects 對象,則寫入會

原创 Mac下hosts文件配置

工作中總會因爲莫名其妙的原因,比如Mac下面打不開某網站,但是在windows 7下面卻可以,此時只需兩步即可完成在Mac下面上網。在Windows下面Win+R,輸入cmd,進入命令行,將在windows下面能打開,但是在Mac下面不能

原创 打開Voice Over時,CATextLayer的string對象兼容NSString和NSAttributedString導致的Crash(二解決思路3)

續前一篇: 打開Voice Over時,CATextLayer的string對象兼容NSString和NSAttributedString導致的Cra

原创 返回present的根

//返回四大tab頁面 + (void)gobackToTabarController { UINavigationController* selectedTabNavController = (UINavigationContr

原创 Xcode Test Navigator一直顯示"Loading Tests..." 解決辦法

        做 Unit Test時,有時工程比較大時,testCase中集成的單元測試用例會比較多,如果新增、修改、寫unit test每次有變動時都全部運行所有的測試用例,效旅是非常低的。幸運的是,Xcode 工具有一個Test

原创 打開Voice Over時,CATextLayer的string對象兼容NSString和NSAttributedString導致的Crash

一、現象:iPhone真機打開Voice Over的情況下,iPhone QQ空間工程,Xcode 真機編譯啓動必Crash,main函數裏面 NSS

原创 在xCode運行時,socketfilterfw進程喫130-160%CPU問題

在最新的xCode中,系統地通過 socketfilterfw 進程顯着減慢速度。 這需要我的macbook幾乎以超過100%的CPU使用率飛行 它只能通過殺死這個進程來停止 xCode有什麼問題? 轉自:https://www.koub

原创 打開Voice Over時,CATextLayer的string對象兼容NSString和NSAttributedString導致的Crash(二解決思路2)

接上一篇:打開Voice Over時,CATextLayer的string對象兼容NSString和NSAttributedString導致的Cras

原创 iOS開發之*.a靜態庫注意事項

以*.a靜態庫的形式引入工程的(比如:libUploadLib.a),*.a裏面的class有category形式實現時,除了在工程Target的 Build Phases裏面的 Link Binary With Libraries裏面添

原创 UILabel設定行間距方法

NSString *textStr = @"iPhone規定:任何應用想訪問麥克風,必須被授權麥克風服務。請進入“設置”->“隱私”->“麥克風”中打開QQ空間的麥克風服務。"; UIFont *textFont = [U

原创 Download all Apple open source OS X files at once

While it is well known that Mac OS X contains open source code, how to access and download that source code is perhaps

原创 通過一個color創建一個image

使用的地方:[_addButton setBackgroundImage:[UIImage imageWithColor:[[UIColor whiteColor] colorWithAlphaComponent:0.f]] forSta

原创 關於weak

#define DECLARE_WEAK_SELF __typeof(&*self) __weak weakSelf = self #define DECLARE_STRONG_SELF __typeof(&*self) __strong