开发者

Adding email client send button as right bar button item

开发者 https://www.devze.com 2023-02-09 14:41 出处:网络
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?

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
}
0

精彩评论

暂无评论...
验证码 换一张
取 消