What are the disadvantages of using presentModalViewController which is now deprecated in iOS 6?
ios, objective-c, xcode
Solution
H2CO3 is quite right: The reason to not use a deprecated feature is that is that Apple has given us fair warning that, being deprecated, future releases of iOS may not support it, and therefore your app might not work on future versions of iOS. The new `presentViewController` gives you all of the functionality of the deprecated method, plus gives you the option of a `completion` block. Maybe you don't need that (in which case you'd just pass `nil`), but that's no reason to use a deprecated feature.
You should only use the deprecated method if you're planning on supporting iOS prior to the version of iOS required by the new method (in this case iOS 5), and if you do, you should conditionally use the deprecated method only for those older versions (i.e. as Steve suggests, check to see if your object `respondsToSelector` for the new method, and if so use that, if not use the old version).
Problem
I want my iphone app to run on old iOS versions too, so i am using presentModalViewController, but at the same time i'm worried about the catastrophe it may bring as i am using a deprecated method. Thanks.