Adding email client send button as right bar button item
I searc开发者_开发技巧hed in forums but could find a way to do this.
Is there any way to add the default email client Send button without using an image view?
Thank you
Use the UIBarButtonSystemItemAction
:
UIBarButtonItem *sendMailButton = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(btnActionPressed)] autorelease];
And don't forget:
- (IBAction)btnActionPressed {
// code
}
精彩评论