我使用这个宏:
#define fontMacro(name, size) ((UIFont *)[UIFont fontWithName:(NSString *)(name) size:(CGFloat)(size)])
UIFont *font = fontMacro(@"Akrol", 15); // Error: Expected ']'
UIFont *font2 = ((UIFont *)[UIFont fontWithName:(NSString *)(@"Akrol") size:(CGFloat)(15)]); // work fine
那么,我该如何使用fontMacro
?