原创 如何在UIAlertView中顯示進度條
今天這個問題是,在一個iPhone程序中,我要在後臺做大量的數據處理,希望在界面上顯示一個進度條(Progress Bar)使得用戶瞭解處理進度。這個進度條應該是在一個模態的窗口中,使界 今天這個問題是,在一個iPhone程序中,我要在
原创 中國天氣網 接口說明
請求鏈接 中國天氣weather.comhttp://m.weather.com.cn/data/101110101.html(六天預報) http://www.weather.com.cn/data/sk/101110101.html(
原创 iOS 類似iPhone通訊錄TableView完整實例【源碼】
iOS 類似iPhone通訊錄TableView完整實例,初學objective-c,自己寫的一個demo,有不足之處請指正: 效果圖: 核心代碼: 1.- (void)viewDidLoad 2.{ 3. [super
原创 表視圖的範例
[轉載地址]:http://blog.csdn.net/riveram/article/details/7340479 1.創建一個Navigation—based—Application項目,這樣Interface Builder中
原创 UITableView詳解(二)
-、建立 UITableView DataTable = [[UITableView alloc] initWithFrame:CGRec
原创 performSelectorOnMainThread
iphone開發中,在主線程之外的線程更新主線程所顯示的界面元素,不能直接調用主線程的類的更新界面的方法,否則界面看不到任何結果.而是需要有個緩衝,叫做performSelectorOnMainThread. 使用方法是,在線程調用到更新
原创 UIActivityIndicatorView and UIProgressView的用法
轉載地址:http://blog.csdn.net/tangren03/article/details/7817862 UIActivityIndicatorView和UIProgressView都繼承自UIView,所以他們可以
原创 UITableView詳解(一)
Andy-清風 原創,轉載請註明,謝謝。 1. UITableView的初始化 UITableView tableview= [[UITableView alloc] initWithFrame:CGRectMake(0, 0,
原创 用MFMessageComposeViewController來發短信
轉載地址:http://www.cnblogs.com/yeagen/archive/2012/10/23/2735349.html -(void)sendMessage{ [self showMessageView: @"13
原创 FMDB的簡單應用(4篇)
轉截地址:http://blog.csdn.net/demon1900demon/article/details/23602535 轉截地址:http://www.mobiledevor.com/post/34.html 轉截地址:ht
原创 MBProgressHUD自定義等待框
轉載地址:http://blog.sina.com.cn/s/blog_7fa6b06f0101aozb.html - (IBAction)LoginBtnTouched:(id)sender { [NSThread det
原创 通過 GPS 信息獲取當前所在城市名的代碼
轉載地址:http://www.cocoachina.com/iphonedev/sdk/2011/0418/2795.html 利用 iPhone、iPad 自帶的 GPS 信息可以獲得當前位置座標,但直接高速用戶座標是不行的。Coco
原创 多線程基礎概念
轉載地址:http://blog.csdn.net/xinghexiyue/article/details/6308710 多線程在各種編程語言中都是難點,很多語言中實現起來很麻煩,objective-c雖然源於c,但其多線程編程卻相當
原创 dispatch與nsthread線程
轉載地址:http://blog.csdn.net/fightper/article/details/6836667 Java代碼 dispatch_async(dispatch_get_global_queue(DIS
原创 NSString中搜索字符串函數rangeOfString的用法
[cpp] view plaincopyprint? NSString *str1 = @"can you \n speak English"; NSString *str = @"\n"; //