iOS 之 导航栏按钮

UIButton *releaseButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
[releaseButton setTitle:@"发布" forState:normal];
[releaseButton addTarget:self action:@selector(releaseInfo:) forControlEvents:UIControlEventTouchUpInside];
UIBarButtonItem *releaseButtonItem = [[UIBarButtonItem alloc] initWithCustomView:releaseButton];
self.navigationItem.rightBarButtonItem = releaseButtonItem;
上一篇:Android Studio插件推荐(PreIOC,GsonFormat)


下一篇:关于Arch Linux efibootmgr 命令行参数问题