Skip to content

Instantly share code, notes, and snippets.

View danielphillips's full-sized avatar

Daniel Phillips danielphillips

  • Trainline
  • London, UK
View GitHub Profile
@danielphillips
danielphillips / gist:5490060
Created April 30, 2013 16:53
Show off all of an NSURL
NSDictionary *urlStuff = @{
@"absoluteString" : URL.absoluteString ? URL.absoluteString : @"nil",
@"relativeString" : URL.relativeString ? URL.relativeString : @"nil",
@"scheme" : URL.scheme ? URL.scheme : @"nil",
@"resourceSpecifier" : URL.resourceSpecifier ? URL.resourceSpecifier : @"nil",
@"host" : URL.host ? URL.host : @"nil",
@"port" : URL.port ? URL.port : @"nil",
@"user" : URL.user ? URL.user : @"nil",
@"password" : URL.password ? URL.password : @"nil",
@"path" : URL.path ? URL.path : @"nil",
@interface SomeViewController : UIViewController
@end
@implementation SomeViewController
- (IBAction)show:(id)sender
{
UIImagePickerController *pickerController = [UIImagePickerController new];
[pickerController setDelegate:(id)self];