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 ?
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 ?
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:
.