A Lot of Functions are deprecated - iOs 6
PhilipCB answered:
[self presentModalViewController:pNewController animated:YES];
can be replaced by
[self presentViewController:pNewController animated:YES completion:nil];
which is really a great improvement because it gives us a completion block at the end. Thus, if you had any upkeep you needed to do after presenting the new view controller, you can assure it only happens once the view controller has successfully loaded.
Additionally dismissModalViewControllerAnimated has also been deprecated and replaced with a similar function to the presenting.
[self dismissViewControllerAnimated:controller completion:nil];
No comments:
Post a Comment