原创 UITextField/UITextView 選中時改變邊框顏色及UITextView的Placeholder
#import "ViewController.h" // first import QuartCore.framework and then add this line #import <QuartzCore/QuartzCore.h
原创 出錯file is universal (3 slices) but does not contain a(n) armv7s slice
錯誤詳細信息: ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /mac/XXX/XXX/libs/libxxx.a for archite
原创 使用 git 遇見的問題
To https://git.coding.net/keither/EasyWay_ios.git ! [rejected] master -> master (fetch first) error: failed to
原创 取消searchBar 背景顏色設置
_searchBar.backgroundColor = [UIColor clearColor]; _searchBar.backgroundImage = [self imageWithColor:[UIColor
原创 iOS核心動畫 CALayer
http://www.cnblogs.com/kenshincui/p/3972100.html
原创 使用CocoaPods 出錯
問題一 ――― MARKDOWN TEMPLATE ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ### Command ``` /Users/rwx-m
原创 使用CocoaPods 但找不到頭文件解決方法
使用CocoaPods後,發現總是找不到頭文件 在TARGETS -> Search Paths -> User Header Search Paths 中 寫入 ${SRCROOT} 再將後面參數改爲recursive
原创 Warning: Multiple build commands for output file
添加資源刪除後 有時候會報一個警告: Warning: Multiple build commands for output file /xxx 1.選擇你的工程 2.選擇target 3.點擊 Build Phases 4.展開Co
原创 (絕對有用)iOS獲取UUID,並使用keychain存儲
UDID被棄用,使用UUID來作爲設備的唯一標識。獲取到UUID後,如果用NSUserDefaults存儲,當程序被卸載後重裝時,再獲得的UUID和
原创 理解Bitcode:一種中間代碼
前言】未來, Watch 應用必須包含 bitcode ,iOS不強制,Mac OS不支持。 但最坑的一點是: Xcode7 及以上版本會默認開啓 bitcode 。 Bitcode是什麼? 通俗解釋:在線版安卓ART模式。 Ap
原创 在gitHub上收藏的資源
github學習資源-iOS https://github.com/huang303513/iOS-Study-Demo github優秀開源項目大全-iOS http://foggry.com/blog/2014/04/2
原创 Xcode如何添加字體,自定義字體
1.網上搜索字體文件(後綴名爲.ttf,或.odf) 2.把字體庫導入到工程的resouce中 3.在程序viewdidload中加載一下一段代碼 NSArray *familyNames = [UIFont familyNames
原创 使用cocoadPod updating local specs repositories 卡住
pod install 換成pod install --verbose --no-repo-update這個命令,前面的命令被牆了 ,pod update 同理 點贊 1 收藏 分享 文章舉報
原创 Unicode轉化爲漢字
\U5317\U4eac\Uff08\U4eac\Uff09 解決 iOS NSDictionary 輸出中文字符”亂碼”(Unicode編碼)問題 找了好多資料 寫的都一樣不過都出錯。差點就去下個庫了。 + (NSString *)r
原创 xcode插件怎麼卸載
Finder菜單前往文件夾。 ~/Library/Application Support/Developer/3.2/Xcode/Plug-ins 有時找不到這個文件就進前一級目錄~/Library/Application Suppor