# pragma mark -
# Pragma mark UITextViewDelegate
- (Void) doneEditting: (id) sender {
[TextViewContent resignFirstResponder];
self.navigationItem.rightBarButtonItem = nil;
}
- (Void) textViewDidBeginEditing: (UITextView *) textView {
self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc]
initWithTitle: @ "Done"
style: UIBarButtonItemStyleDone
target: self
action: @ selector (doneEditting :)]
autorelease];
}
Did not add a text Done button in the navigation bar above.
How it happened?
Reply:
Hello ~
System comes ~
"Done" button
UIBarButtonItem * aItme = [[UIBarButtonItem alloc] initWithBarButtonSystemItem: UIBarButtonSystemItemDone target: self action: @ selector (doneEditting :)];
self.navigationItem.rightBarButtonItem = aItem;
[AItem release];
Hope that helps
No comments:
Post a Comment