I have a few functions that are deprecated since iOs 6. Maybe this'll be helpful for others who also just updated to iOs 6.
[self presentModalViewController:pNewController animated:YES]; presentModalViewController:animated is deprecated since iOs 6 Autosynthesized property 'String' will use synthesized instance variable '_String', not existing instance variable 'String' Autosynthesized property 'phonenumber' will use synthesized instance variable '_phonenumber', not existing instance variable 'phonenumber' Deprecated: Group Table View Background Color is deprecated in iOS 6.0.
Could anyone help me how to fixed it so there wont be any deprecated functions in my project.
Thanks in Advance
[self presentModalViewController:pNewController animated:YES];
can be replaced by
[self presentViewController:pNewController animated:YES completion:nil];
The background of this change can be seen on WWDC 2012 video session #236, the evolution of view controllers on iOS.
click on the method which is deprecated. in the right column Quick Help inspector
you can see the Quick Help from the Apple docs.
There is also a recommandation to use updated or alternate methods.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With