这是老版的项目,其中的button方式是自己写的,
用法做一下笔记
NSString *itemStr = @"跳过";
UIFont *buttomFont = [UIFont systemFontOfSize:kFontSizeBig];
CGSize buttomSize = [itemStr sizeWithFont:buttomFont];
UIButton *aButton = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, buttomSize.width, 40)];
[aButton setTitle:itemStr forState:UIControlStateNormal];
aButton.titleLabel.font = buttomFont;
aButton.titleLabel.textColor = [UIColor whiteColor];
[aButton addTarget:self action:@selector(ignoreGestureCode) forControlEvents:UIControlEventTouchUpInside];
UIBarButtonItem *ignoreItem = [[UIBarButtonItem alloc] initWithCustomView:aButton];