Ccna final exam - java, php, javascript, ios, cshap all in one. This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
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.
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):
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):
ReplyDeleteUIViewController *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];