开发者

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜