https://github.com/yaakaito/UIWebView-UserAgent
fetching UIWebViews UserAgent
https://github.com/yaakaito/UIWebView-UserAgent
Last synced: 11 days ago
JSON representation
fetching UIWebViews UserAgent
- Host: GitHub
- URL: https://github.com/yaakaito/UIWebView-UserAgent
- Owner: yaakaito
- Archived: true
- Created: 2012-04-05T04:53:29.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2012-04-05T05:00:28.000Z (about 13 years ago)
- Last Synced: 2025-04-01T17:06:11.734Z (14 days ago)
- Language: Objective-C
- Homepage:
- Size: 83 KB
- Stars: 10
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.mkd
Awesome Lists containing this project
- awesome - UIWebView-UserAgent - fetching UIWebViews UserAgent (etc)
- awesome - UIWebView-UserAgent - fetching UIWebViews UserAgent (etc)
README
fetching UIWebViews UserAgent
## feature
```objective-C
- (void)viewDidLoad {
self.webView = [UIWebView webViewWithUserAgent:@"Sakura"];
self.webView.delegate = self;
[self.webView loadRequest:request];
}- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType{
[UIWebView resetUserAgent];
return YES;
}
```