What is the difference between those two methods when it comes to changing the nib views?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
“insertsubview” retains the view and sets its next responder to the receiver, which is its new superview.Views can have only one superview. If view already has a superview and that view is not the receiver, this method removes the previous superview before making the receiver its new superview.
“presentmodalviewcontroller” are tools that you can call without disrupting the current workflow and displaying a new set of views.
hope it will help you to understand in basic level and for more in depth please refer Apple’s documentation of UIView and ViewControllers.