Last active
August 15, 2016 07:50
-
-
Save hudinwal/9f552ee53f5bcfe189805464db599032 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <SafariServices/SafariServices.h> | |
- (IBAction)safariButtonTapped:(UIBarButtonItem *)sender { | |
SFSafariViewController * safariViewController = NSURL * initialURL = [NSURL URLWithString:@"https://www.google.co.in"]; | |
[[SFSafariViewController alloc]initWithURL:initialURL]; | |
safariViewController.navigationItem.title = @"Google"; | |
safariViewController.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Close" style:UIBarButtonItemStylePlain target:nil action:nil]; | |
[self.navigationController pushViewController:safariViewController animated:YES]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment