I put some links in my app that launch safari when asked:
Unfortunately, the backbutton in safari is inactive with no means to the user to go back to the app.
Any idea?
Code:
- (IBAction)jumpToUrl:(id)sender {
UIButton *url = (UIButton *)sender;
NSString *urlString = [NSString stringWithFormat:@"http://%@", url.currentTitle];
if (![[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlString]])
{
// there was an error trying to open the URL. for the moment we'll simply ignore it.
}
}
Unfortunately, the backbutton in safari is inactive with no means to the user to go back to the app.
Any idea?