简体   繁体   中英

[iPhone]changing the color of the info dark button

please i would like to change the color of the info Dark button shown in the picture(top right) to be visible. 在此处输入图片说明

There are 2 ways:

  • using Interface Builder: select the button, change it's type to "Info Light"
  • programmatically: yourButton = [UIButton buttonWithType:UIButtonTypeInfoLight];

Is this what you were looking for?

Use below piece of code you reference,

UIButton *button = [UIButton buttonWithType:UIButtonTypeInfoLight];
UIBarButtonItem *customItem = [[UIBarButtonItem alloc] initWithCustomView:button];
self.navigationItem.rightBarButtonItem = customItem;
[customItem release];

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM