标签:nec target plain 工具 class 工具栏 selector ted field
UIToolbar *keyboardDoneButtonView = [[UIToolbar alloc] init];
[keyboardDoneButtonView sizeToFit];
UIBarButtonItem *doneButton = [[UIBarButtonItem alloc] initWithTitle:@"Done"
style:UIBarButtonItemStylePlain target:self
action:@selector(doneClicked:)];
[keyboardDoneButtonView setItems:[NSArray arrayWithObjects:doneButton, nil]];
self.textField.inputAccessoryView = keyboardDoneButtonView;
标签:nec target plain 工具 class 工具栏 selector ted field
原文地址:http://www.cnblogs.com/nxcdjx/p/7297881.html