Last active
December 20, 2015 13:29
-
-
Save tanb/6139305 to your computer and use it in GitHub Desktop.
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
NSInteger column = 2; | |
SEL sel = NSSelectorFromString(@"numberOfRowsInColumn:"); | |
NSInvocation *inv = [NSInvocation invocationWithMethodSignature:[datePickerView methodSignatureForSelector:sel]]; | |
[inv setSelector:sel]; | |
[inv setTarget:datePickerView]; | |
[inv setArgument:&column atIndex:2]; | |
[inv invoke]; | |
NSUInteger length = [[inv methodSignature] methodReturnLength]; | |
NSInteger buffer = (NSInteger)malloc(length); | |
[inv getReturnValue:&buffer]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment