How can I change the image of Bar Button of emailcomposer in iPhone app? I am able to change the image of the Navigation Bar but I also have to change the image of Send and cancel button.
the composer is presented modally as rootviewcontrolelr of a navigation controller.
If you change properties of UINavigationCar as well UIBarButtonItem with appearance
, it should do the trick
UIBarButtonItem *barbuttonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonItemStyleBordered target:nil action:nil];
if ([barbuttonItem respondsToSelector:@selector(setTintColor:)]) {
[[UIBarButtonItem appearance] setTintColor:kUIBarButtonItemTitleColor];
}
But keep in mind that this will change all bar button items not only the ones in mail composer.
尝试通过mailComposeViewController.navigationBar.items访问它们,这是一个条形项的数组。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.