I would like to extend UIButton
with an NSString
for some meta info. How could I do this?
I am starting with this:
@interface UIButton (neoUtils)
+ (UIButton *)neoName:(NSString *)buttonName;
@end
and the .m
#import "UIButton+NAME.h"
@implementation UIButton (neoUtils)
+ (UIButton *)neoName:(NSString *)buttonName {
UIButton *button = [UIButton neoName:buttonName];
NSLog(@"%@",button);
return button;
}
@end
Is this on the right path? And if so - how would I possibly use it?