2013年9月30日 星期一



“May God break my heart so completely that the whole world falls in.”




- By  Mother Teresa 

LLDB Debugger 一直會卡在Attaching Project on iPad [Solved]


在Run Simulator的時候,會一直卡在Attaching project on iPad...

之後就一直等一直等....

直到你要用強制關閉才能終止它做事.

這個問題解了,發現是因為 localhost 對應的ip錯誤. 導致無法Attaching 成功.

2013年9月24日 星期二

UITableView 實作下拉更新 用refresh control



在 YourViewController.h中加入

@property (nonatomic, strong) UIRefreshControl *refreshControl;
@property (nonatomic, strong) IBOutlet UITableView * tbView; (你要下拉更新的TableView)


2013年9月18日 星期三

[Bug] Invalid Icon Path - No icon found at the path referenced under key

當你Build都沒有問題,Archive也沒問題,

但就是最後Submit的時候有這個錯誤訊息:

Invalid Icon Path - No icon found at the path referenced under key

遇到這個問題的時候

只要檢查自己Project的 XXX-info.plist裡面的 Icon files  即可!

會有一些不存在的圖,把它Delete掉即可!







2013年9月14日 星期六

如何設定Navigation上的Title和Color











在你的ViewController.m 中
- (void)viewDidLoad{

    [self.navigationItem setTitle:@"Any Title"];

}

2013年9月12日 星期四

使用plist讀取資料完整範例教學


iOS中, plist就像一個物件的"檔案",

可以輕易的當成物件做存取和寫入,

以下是一個最基本使用plist的練習.