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
# .gitignore in use by Joris Kluivers | |
# | |
# Latest version: | |
# https://gist.github.com/gists/1923197 | |
*.DS_Store | |
# Xcode | |
*.pbxuser | |
*.mode1v3 |
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
NSURL *someURL = [NSURL URLWithBuilderBlock:^(NSURLComponents *builder) { | |
builder.scheme = @"http"; | |
builder.host = @"joris.kluivers.nl"; | |
builder.path = @"/blog/2013/10/17/nsurlcomponents/"; | |
}]; | |
// url now equals: | |
// http://joris.kluivers.nl/blog/2013/10/17/nsurlcomponents/ |
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
@implementation UIResponder (ResponderForwarding) | |
- (BOOL) tryToPerformAction:(SEL)action withObject:(id)object | |
@end | |
@implementation UIResponder (ResponderForwarding) | |
- (BOOL) tryToPerformAction:(SEL)action withObject:(id)object | |
{ | |
if (!action) { | |
return NO; |
NewerOlder