定义
#define BARBUTTON(TITLE, SELECTOR) [[[UIBarButtonItem alloc] initWithTitle:TITLE style:UIBarButtonItemStylePlain target:self action:SELECTOR] autorelease]
使用
self.navigationItem.leftBarButtonItem = BARBUTTON(@"Redo", @selector(redo));
原文:http://www.cnblogs.com/isItOk/p/5218760.html