Questions tagged [uiappearance]

iOS 5+ API for appearance customisation. You use the UIAppearance protocol to get the appearance proxy for a class. You customize the appearance of instances of a class by sending appearance modification messages to the class’s appearance proxy.

UIAppearance allows the appearance of views and controls to be consistently defined across the entire application.

UIAppearance is a protocol that returns a proxy that will forward any configuration to instances of a particular class.

API introduced in iOS 5 allowing convenient customisation of appearance properties for all instances of class by sending appearance specification messages to the class' appearance proxy..

Note: iOS applies appearance changes when a view enters a window, it doesn’t change the appearance of a view that’s already in a window. To change the appearance of a view that’s currently in a window, remove the view from the view hierarchy and then put it back.

448 questions
0
votes
1 answer

setBackButtonBackgroundImage Weard Behaviour on iOS5.1

I have two différent behaviour on ios5.1 and ios6.0 with [[UIBarButtonItem appearance] setBackButtonBackgroundImage:offBackButton forState:UIControlStateNormal barMetrics:UIBarMetricsDefault]; On iOS 6.0 On iOS 5.1 ??? Is there something I'm not…
Vassily
  • 899
  • 2
  • 8
  • 19
0
votes
1 answer

CG drawing in UIView to use as UIImage?

I am attempting to create a custom back button for UINavigationbar. I know that I can use backButtonBackgroundImageForState:barMetrics: to set an image. My problem is that I don't what to have to use an image file. I would rather draw the back…
0
votes
1 answer

iOS - UINavigationBar transparent corners not all the time

I'm using a custom UINavigationBar which has transparent corners in the upper left and upper right. I'm using [[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed:@"navbar.png"] forBarMetrics:UIBarMetricsDefault]; This works great…
Peter Warbo
  • 11,136
  • 14
  • 98
  • 193
0
votes
1 answer

UISwitch Crash / thumbTintColor setting

I have following setting in my app. A navigation controller, two view controllers with tableview each. In the second tableview there is a static cell with a switch. When I tap on a cell in the first tableview the second controller gets called. Here…
Sven
  • 33
  • 1
  • 2
0
votes
1 answer

Button image for UIControlStateSelected not working after customizing UIBarButtonItem through UIAppearance

I've customized UIBarButtonItem in my AppDelegate.m using UIAppearance and all the bar buttons are showing the correct images in normal and selected states. I want "Done" and "Save" buttons to use a different image (so they appear to be blue instead…
James
  • 762
  • 8
  • 22
0
votes
1 answer

UIAppearance's setTitleTextAttributes causes UINavigationBar title set in storyboard to appear with ellipsized title in iOS 6 but not iOS 5

i have been using what i had thought to be some fairly standard iOS 5 code (and which is a 7x accepted answer on stackoverflow) in order to have my UINavigationBar's title appear with a customized font.] but i have discovered that when my app built…
john.k.doe
  • 7,533
  • 2
  • 37
  • 64
0
votes
1 answer

Changing background color of selected UITableViewCells in iOS5

My app displays grouped static UITableViews in different screens. Is there anyway of using the appearance proxies [UITableView appearance] or [UITableViewCell appearance] to customise the background color for the selected cells? Basically I would…
Claus
  • 5,662
  • 10
  • 77
  • 118
0
votes
3 answers

UINavigationBar Custom Title View

I am using iOS 5 UINavigationBar's UIAppearance protocol in order to customise all my navigation bars. Here is my customisation function: - (void)customizeApperance { [[UINavigationBar appearance] setTintColor:[UIColor clearColor]]; …
darksky
  • 20,411
  • 61
  • 165
  • 254
0
votes
1 answer

iOS: Can't change the color of a UIBarButtonItem

I basically have a ViewController that is the root ViewController of a UINavigationController. Basically I have a UIBarButtonItem that when a user presses on it, its tint color should toggle between red and green. But the color doesn't seem to…
Alex1987
  • 9,397
  • 14
  • 70
  • 92
0
votes
1 answer

Set default rightBarButtonItem for UINavigationController

Sup guys, I have a tabBarController with a navigationController on each tab. I wanted to set de default right bar button of navigation bar so I wouldn't have to write the same code on 3 different view controllers. I tried [[UINavigationBar…
Andre Cytryn
  • 2,506
  • 4
  • 28
  • 43
0
votes
1 answer

UIEdgeInsets resizing Back button

I'm trying to customize the back button of a UINavigationBar using the iOS 5 UIAppearance API. The image I want to use is this: https://www.dropbox.com/s/ce83rw0e3vs9dwo/bt-back.png and the code is the following: // Customize back button items…
Pierluigi Cifani
  • 224
  • 2
  • 14
0
votes
1 answer

iOS 5 - 1 Custom UINavigationBar different than all others

I'm using UIAppearance in iOS 5 to create a custom UINavigationBar. I use the following code (inside AppDelegate.m) to give all of the navigation bars the same background [[UINavigationBar appearance] setBackgroundImage:[UIImage…
mhbdr
  • 753
  • 2
  • 10
  • 26
0
votes
1 answer

UIToolbar translucent like photos app

I was wondering how to make the UIToolbar look transparent like the photos app where it allows the photo below it to be seen. I have my UIToolbar placed in IB. In IB, I set both the tintColor and backgroundColor to ClearColor. In code, I also…
Crystal
  • 28,460
  • 62
  • 219
  • 393
0
votes
2 answers

Customizing "Done" Bar Button on top of UIKeyboard using UI Appearance?

I've customized my navigationBar UIBarButtons using appearance in ios 5. However it is also editing the appearance of the DONE bar button on top of my keyboard (look at the image below to understand the button I'm talking about). How can I access…
Year3000
  • 459
  • 2
  • 7
  • 15
0
votes
1 answer

How should I accomplish "setTintColor forState" (which does not exsist)?

In my app delegate I have this: UIColor* color = [UIColor colorWithRed:36/255.0f green:38/255.0f blue:56/255.0f alpha:1.0f]; [[UIBarButtonItem appearance] setTintColor:color]; I'd like to have another color set for the pressed state. How do I…
Pieter
  • 1,751
  • 3
  • 30
  • 65
1 2 3
29
30