/* Hello, I am learning Iphone App development. I have a doubt, in case i want to cancel the current page view and go to home page( Its nothing but cancel Button), how can i figure it out? */
// thanks in Advance//
/* Hello, I am learning Iphone App development. I have a doubt, in case i want to cancel the current page view and go to home page( Its nothing but cancel Button), how can i figure it out? */
// thanks in Advance//
if i understand you correctly, you should use "NavigationController" like this;
[self.navigationController popToRootViewControllerAnimated:YES];
[self.navigationController popToViewController:myviewcontroller animated:YES];
there are 2 ways to cancel view(go to home page)
1-if you are using navigationController than
try this => [self.navigationController popToRootViewControllerAnimated:YES];
2-if you are using present model view controller than try this =>
[self dismissModalViewControllerAnimated:YES];
3-if you are presenting the view in sub view of homepage(or like parent-child) than
try this => ["your view name" removeFromSuperview];
this is useful for me i think it may help you,
I think you want to remove your current view. If so Use [yourview removeFromSuperview];