Friday, February 24, 2012

iphone navigate back to app from external page


I have an iphone app that I want to be able to navigate to an external page and then have a back button when pressed take me back to my apps page.


1 comment:

  1. Use UIWebView. Push a UIViewController containing a UIWebView onto your current view controller, ensuring it's a UINavigationController of course. Here's a short example of how to do this (though you should make a proper UIViewController subclass in practise):

    UIViewController *webViewController = [[UIViewController alloc] init];
    [webViewController.view addSubview:[[UIWebView alloc] initWithFrame:CGRectMake(0.0, 0.0, 320.0, 480.0)]];
    [self.navigationController pushViewController:webViewController animated:YES];

    ReplyDelete