Unit Test 工具1、OCUnit:從 xcode 2.1 開始整合到開發環境中,使用方便,不需要引入額外的庫。並可以配置 xcodebuild,實現在命令列測試,從而在 CI 中進行測試與報告。2、GTM 的單元測試部分:對 OCUnit 進行了擴充,增加了一些宏。地址:https://code.google.com/p/google-toolbox-for-mac/wiki/iPhoneUnitTesting3、GHUnit:帶有一個獨立的 GUI。地址:https://github.
ref:http://bjango.com/articles/pngcompression/At face value, running your images through a tool like ImageOptim seems like a great idea. It grinds away, shaving kilobytes or bytes off each file, hopefully helping your app download and launch faster.
在應用中撥打到電話,可以參考如下的程式碼片段:// This will dial a call without prompting the user[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:1-800-555-1212"]];但是在撥打到電話前給使用者一個提示是比較友好的,參考如下程式碼片段(在iOS5.0下):NSString *number = @"telprompt://1-800-555-1
iOS: http://developer.apple.com/library/ios/#technotes/tn2239/_index.htmlMac OS X: http://developer.apple.com/library/ios/#technotes/tn2004/tn2124.html===============================================================Debugging Objective-C with
查看UITableView.h檔案看似密密麻麻,其實結構很簡單就是2個協議UITableViewDelegate,UITableViewDataSource,一個類NSIndexPath對於UITableViewDelegate協議,蘋果的檔案中寫的介紹是:this represents the display and behaviour of the
你可以使用openUrl開啟一些程式,不只是瀏覽器,我們將在下面的例子中示範這些這些應用:開啟瀏覽器開啟google map開啟email撥號程式發簡訊程式開啟appstoreLaunch Google Maps到googlemap的URL格式是:http://maps.google.com/maps?q=${QUERY_STRING}你可以更改QUERY_STRING改變位置資訊:NSString* searchQuery = @"the postion I want to