2012年1月3日 星期二

畫面預載的Loading...畫面

https://github.com/jk/MBProgressHUD

參照上面project可以自由叫出loading畫面

但無法讓tableview先"預先載入空白畫面" 好讓我們在上面做loading

要再研究...

pull & Pull-refresh depend on ARC

http://blog.csdn.net/w59879213/article/details/7165236

照著改,有些沒講到下面補充

註解掉.m下的- (void)dealloc {}方法

去build phases的link binary with ....加入quartzcore.framework

可以在arc下跑了

實作方法照舊~

我拖來一個ViewController,阿我自己寫的xxxViewController是...

that was it !

選擇一套控制方法---當你在為Storyboard上新拖出來的ViewController選擇Custom Class時你正在為它上面的view做這件事。

否則view就會被系統的預設ViewController給控制,那只是個樣板,除了預設它不會去改變你拖出來畫面。

套上去了你客製化自己寫的xxxxViewController就會幫你去控制你在Storyboard上拖出來的東畫面。

2012年1月2日 星期一

Property’s synthesized getter follows Cocoa naming convention for returning ‘owned’ objects

啟用arc,變數名稱不能用 new 或 alloc 或 copy 做開頭 ~

開發注意

.h
NSMutableArray *newsURLList;
@property (nonatomic,retain) NSMutableArray *newsURLList;

.m
@synthesize newsURLList;

都宣告完之後記得這個初始

self.newsURLList = [[NSMutableArray alloc] init];

如果忘記初始化,一直

[newsURLList addObject:string];

value一定取不出來都是(null),編譯器也不會跟你說有錯,怎麼死的都不知道