我有具有經由viewController1.view和viewController2.view屬性添加2個不同視圖一個UIScrollView。我想通知viewController1.view或viewController2.view已經出現在屏幕上。試圖使用viewDidAppear方法,但它不會被調用。的viewController加入UIScrollView的不調用其viewDidAppear方法
錯過了什麼?有任何想法嗎?
謝謝!
//Add xViewController to scrollView
[scrollView addSubview:firstViewController.view];
[scrollView addSubview:secondViewController.view];
[scrollView addSubview:thirdViewController.view];
[scrollView addSubview:fourthViewController.view];
請發佈代碼將viewController1.view添加到滾動視圖。 – Rayfleck 2011-05-23 23:20:06