原创 APNS設置
APNS設置 openssl x509 -in aps_development.cer -inform der -out MobileCAPCert.pem openssl pkcs12 -nocerts -out MobileCAP
原创 對於Button的圓角顯示,利用layer實現
示例: 對button1的邊框進行設置 #import <QuartzCore/QuartzCore.h>//不要忘記添加庫文件 CALayer *layer1=[button1 layer]; //是否設置邊框以及是否可見
原创 ”PBXCp Error“ 錯誤
解決:http://stackoverflow.com/questions/5642633/pbxcp-issue-file-not-found-but-its-definitely-there,刪掉項目中紅色的編譯文件,重新添加
原创 “Valid signing identity not found” 錯誤
解決: 重新生成CertificateSigningRequest.certSigningRequest 證書 。重新走一遍證書for develop & Distribution ,和 生成Provisioning操作。 再下載,證書就
原创 發送短信/郵件/打電話:
發送短信/郵件/打電話: + (void)alert:(NSString *)msg { UIAlertView *alertView = [[[UIAlertView alloc] initWithTitle:msg messa
原创 CocoaPods
記錄:第三方開源代碼的工具,爲iOS程序提供依賴管理的工具, 只需要將用到的第三方開源庫放到一個名爲Podfile的文件中,然後執行pod install。CocoaPods就會自動將這些第三方開源庫的源碼下載下來,並且爲我的工程設置好相
原创 Make project in test flight
1.如圖, Project 和Targets中的Build Setting 中的Code Signing identity選中開發者證書,確保Project能正常在手機上運行。 2.在手機上Run成功,選中Project-Archive
原创 多線程
[self performSelector:@selector(loadData) withObject:nil afterDelay:1.f];
原创 iphone功能調用代碼集合
1.頁面切換 //頁面切換 MyViewController *controller = [[MyViewController alloc] initWithNibName:@"MyViewController" bundle:nil]
原创 ASIHTTPRequest GET(下載) POST(上傳)
ASIHTTPRequest GET(下載) POST(上傳) 官網 :http://allseeing-i.com/ASIHTTPRequest/ 如何讓ASIHttpRequest支持ARC: 1.導入FrameWork:CFN
原创 iphone4、4S程序如何兼容Iphone5 (關鍵字 NSLayout、NSLayoutConstraint)
1.首先記錄如何讓程序兼容iphone5,很容易搜索到,此處簡單記錄。 1.xib中use Autolayout勾上 2.xib中Size--Retina 4 Full Screen 3.代碼中判斷是否是iphone5:---- #d
原创 IOS開發xcode4.5導入項目時所碰到的錯誤
1、我遇到的問題shell Script invocation Error ,Command /bin/sh failed with exit code 2 解決方案: 查看build phase裏面run script是否寫的正確,必
原创 IOS 6 自動佈局 入門 2 (Autolayout)
來自Ray:恭喜各位!你們已經通過宣傳ios feast提前解鎖了第一個有關IOS6的教程。 目前這份教程只是我們的新書iOS 6 By Tutorials裏面某個章節的精簡版。這份教程由同樣著作過iOS Apprentice S
原创 Xcode 5.1安裝插件:規範註釋生成器VVDocumenter
原文 http://blog.csdn.net/u010962810/article/details/21452195 終於有時間停下來玩下Xcode的插件了,最近需要用下規範註釋生成器,於是裝了個插件用下。 下面是安裝過程(簡單
原创 Uncrustify 代碼強制規範2
Uncrustify簡介 代碼強制規範工具 項目地址:https://github.com/bengardner/uncrustify Uncrustify安裝 (注.使brew獲取root權限) ll /usr/loca