at_yasu's blog

ロード的なことを

UIScrollView と delegate のメソッド呼び出しの順番メモ

UIViewController を継承してカスタマイズしたクラスを作り、内部ではUIScrollViewのdelegate(UIScrollViewDelegate)も兼ねている。

delegate の通知と、UIViewControllerのメソッドの呼び出し順番のメモ。

== 起動 ==
2010-05-14 02:24:52.788 SVCTest[9154:207] -[KSScrollViewController loadView]
2010-05-14 02:24:52.794 SVCTest[9154:207] -[KSScrollViewController viewWillAppear:]
2010-05-14 02:24:52.839 SVCTest[9154:207] -[KSScrollViewController viewDidAppear:]
== 起動終了 ==
== スクロールして止まって〜の動作を二回 ==
2010-05-14 02:24:54.066 SVCTest[9154:207] -[KSScrollViewController(ScrollViewDelegate) scrollViewWillBeginDragging:]
2010-05-14 02:24:54.100 SVCTest[9154:207] -[KSScrollViewController(ScrollViewDelegate) scrollViewDidEndDragging:willDecelerate:]
2010-05-14 02:24:54.101 SVCTest[9154:207] -[KSScrollViewController(ScrollViewDelegate) scrollViewWillBeginDecelerating:]
2010-05-14 02:24:54.782 SVCTest[9154:207] -[KSScrollViewController(ScrollViewDelegate) scrollViewWillBeginDragging:]
2010-05-14 02:24:54.866 SVCTest[9154:207] -[KSScrollViewController(ScrollViewDelegate) scrollViewDidEndDragging:willDecelerate:]
2010-05-14 02:24:54.867 SVCTest[9154:207] -[KSScrollViewController(ScrollViewDelegate) scrollViewWillBeginDecelerating:]
2010-05-14 02:24:55.515 SVCTest[9154:207] -[KSScrollViewController(ScrollViewDelegate) scrollViewWillBeginDragging:]
== ここから三回連続飛ばしで止まらずにスクロール ==
2010-05-14 02:24:55.611 SVCTest[9154:207] -[KSScrollViewController(ScrollViewDelegate) scrollViewDidEndDragging:willDecelerate:]
2010-05-14 02:24:55.612 SVCTest[9154:207] -[KSScrollViewController(ScrollViewDelegate) scrollViewWillBeginDecelerating:]
2010-05-14 02:24:55.986 SVCTest[9154:207] -[KSScrollViewController(ScrollViewDelegate) scrollViewDidEndDragging:willDecelerate:]
2010-05-14 02:24:55.988 SVCTest[9154:207] -[KSScrollViewController(ScrollViewDelegate) scrollViewWillBeginDecelerating:]
2010-05-14 02:24:56.226 SVCTest[9154:207] -[KSScrollViewController(ScrollViewDelegate) scrollViewDidEndDragging:willDecelerate:]
2010-05-14 02:24:56.228 SVCTest[9154:207] -[KSScrollViewController(ScrollViewDelegate) scrollViewWillBeginDecelerating:]
== ここまで ==
== 終了動作 ==
2010-05-14 02:24:59.634 SVCTest[9154:207] -[KSScrollViewController viewWillDisappear:]
2010-05-14 02:24:59.635 SVCTest[9154:207] -[KSScrollViewController viewDidDisappear:]
== 終了 ==


横に長いのは、あぽーの命名規則を恨んでくれ。