tags:

views:

47

answers:

1

I'm adding a view with addSubView I'm also using the view elsewhere and presentModalViewController.

viewWillAppear is called with presentModalViewController but not with addSubView.

No doubt this is something obvious ?

+2  A: 

viewWillAppear: is called by the parent view controller when it presents another view controller (e.g. by pushViewController:animated: or presentModalViewController:animated:). It is never called when you manually call addSubview:.

Ole Begemann