Skip to content

Instantly share code, notes, and snippets.

@r-plus
Created March 5, 2011 14:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r-plus/856412 to your computer and use it in GitHub Desktop.
Save r-plus/856412 to your computer and use it in GitHub Desktop.
get active tab URL method of mobilesafari.
@interface UIApplication (SafariActiveURL)
- (id)activeURL;
//maybe return NSString class
@end
//...
id activeURL = [[UIApplication sharedApplication] activeURL];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment