#####解决方法
- (void)setupToolBar{
- (void)setupToolBar{
##SCREEN_WIDTH 屏幕宽度
UIToolbar * bar = [[UIToolbar alloc] initWithFrame:CGRectMake(0,0,SCREEN_WIDTH,44)];
UIButton* button = [UIButton buttonWithType:UIButtonTypeCustom];
button.frame = CGRectMake(SCREEN_WIDTH - 60 , 7,50, 30);
[button setTitleColor:RGB(51, 51, 51) forState:UIControlStateNormal];
[button setTitle:@"完成"forState:UIControlStateNormal];
button.titleLabel.font = kFont(17);//字体的大小
[button addTarget:self action:@selector(finishClickEvent:) forControlEvents:UIControlEventTouchUpInside];
[bar addSubview:button];
self.noteContentView.inputAccessoryView = bar;
[bar layoutIfNeeded];
NSArray * subViewArray = [bar subviews];
for (id view in subViewArray) {
if ([view isKindOfClass:(NSClassFromString(@"_UIToolbarContentView"))]) {
UIView *testView = view;
testView.userInteractionEnabled = NO;
}
}
}