Skip to content

Instantly share code, notes, and snippets.

@migueldeicaza
Created May 17, 2012 21:42
Show Gist options
  • Select an option

  • Save migueldeicaza/2721741 to your computer and use it in GitHub Desktop.

Select an option

Save migueldeicaza/2721741 to your computer and use it in GitHub Desktop.
[[UILabel appearance] setFont:[UIFont italicSystemFontOfSize:100]];
[[UILabel appearance] setTextColor:[UIColor redColor]];
[[UILabel appearance] setShadowColor:[UIColor redColor]];
[[UILabel appearance] setShadowOffset:CGSizeMake(4,4)];
int i=0;
unsigned int mc = 0;
Method * mlist = class_copyMethodList(object_getClass([UILabel appearance]), &mc);
NSLog(@"%d methods", mc);
for(i=0;i<mc;i++)
NSLog(@"Method no #%d: %s", i, sel_getName(method_getName(mlist[i])));
@migueldeicaza

Copy link
Copy Markdown
Author

2012-05-17 17:42:56.714 appearancetests[4746:f803] 9 methods
2012-05-17 17:42:56.715 appearancetests[4746:f803] Method no #0: _resettableInvocationsCreateIfNecessary
2012-05-17 17:42:56.715 appearancetests[4746:f803] Method no #1: updateResettableSelectorsWithInvocation:removeSelector:
2012-05-17 17:42:56.716 appearancetests[4746:f803] Method no #2: _appearanceInvocations
2012-05-17 17:42:56.716 appearancetests[4746:f803] Method no #3: _CustomizableClass
2012-05-17 17:42:56.716 appearancetests[4746:f803] Method no #4: _resettableInvocations
2012-05-17 17:42:56.717 appearancetests[4746:f803] Method no #5: _setResettableInvocations:
2012-05-17 17:42:56.717 appearancetests[4746:f803] Method no #6: dealloc
2012-05-17 17:42:56.718 appearancetests[4746:f803] Method no #7: methodSignatureForSelector:
2012-05-17 17:42:56.718 appearancetests[4746:f803] Method no #8: forwardInvocation:
(lldb)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment