宏定义 button 方法 --备

定义 

#define BARBUTTON(TITLE, SELECTOR) [[[UIBarButtonItem alloc] initWithTitle:TITLE style:UIBarButtonItemStylePlain target:self action:SELECTOR] autorelease]

 

使用

self.navigationItem.leftBarButtonItem = BARBUTTON(@"Redo"@selector(redo));

原文地址:https://www.cnblogs.com/isItOk/p/5218760.html