This file contains hidden or 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
// Omitting the ownership qualification here can lead to a EXC_BAD_ACCESS exception in ARC enabled projects. | |
__weak id returnValue = nil; | |
SEL selector = @selector(colorFromString:); | |
NSString *valueString = @"0.2 0.2 0.2 1.0"; | |
// Create and configure the NSInvocation object. | |
NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:[target methodSignatureForSelector:selector]]; | |
invocation.selector = selector; | |
invocation.target = target; |
This file contains hidden or 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 <Foundation/Foundation.h> | |
int main(int argc, const char * argv[]) | |
{ | |
@autoreleasepool { | |
NSString *key = @"UINavigationBarTintColor"; | |
NSString *pattern = @"(Color|Font|Height|Width|Size|Origin|Frame)$"; |
This file contains hidden or 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 <CoreLocation/CoreLocation.h> | |
@interface NSString (IARL) | |
- (CLLocationCoordinate2D)coordinateFromGridSquareLocator; | |
@end |
NewerOlder