顯示具有 iOS6 標籤的文章。 顯示所有文章
顯示具有 iOS6 標籤的文章。 顯示所有文章

2013年2月23日 星期六

Responds To Selector

在@select時
如果沒有選好常會有當掉的狀況
搜尋了一下
有篇文章的方法不錯記錄下來
http://blog.csdn.net/dongdongdongjl/article/details/8498555

使用respondsToSelector@select(Method)
來判斷是否有此Method
這樣就比較不會當掉了

iOS5 Deprecated Method

在iOS6推出之後有些Method被廢棄了
在這紀錄iOS5 Deprecated Method
然後應該換用的Method

//Deprecated
self presentModalViewController:(UIViewController *) animated:(BOOL)
//改用
self presentViewController:(UIViewController *) animated:(BOOL) completion:^(void)completion