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

UIProgressView doesn't change height after changing appearance, but change after rotating device

I've set track image and progress image using [UIProgressView appearance]. Images set, but height of UIProgressView didn't change. It changes only after rotating device to lanscape. Where could be problem? Setting UIProgressView's frame doesn't…
Timur Mustafaev
  • 4,869
  • 9
  • 63
  • 109
0
votes
2 answers

setBackgroundView appearance for UITableView causes endless loop

I faced strange endless loop in some cases using setBackgroundView for UITableView appearance. Here is appearance initialization: UIImageView *iv = [[UIImageView alloc] initWithImage:[UIImage imageNamed: @"bg"]]; [[UITableView appearance]…
Oleksandr
  • 419
  • 3
  • 14
0
votes
2 answers

Slicing/Dicing UI Files

Is there a quick/easier way to create the required graphic files for an iOS UI theme (at standard and 2x resolutions) from a PSD such as http://graphicriver.net/theme_previews/2989093-magnanimous-ios-ui-kit-for-mobile-interface?index=6. The only way…
Echilon
  • 10,064
  • 33
  • 131
  • 217
0
votes
0 answers

Custom UINavigationBar background image appears darker than the original image

I am customizing a UINavigationBar like so: UIImage * img = [UIImage imageNamed:@"background.png"]; [[UINavigationBar appearance] setBackgroundImage:img forBarMetrics:UIBarMetricsDefault]; My original image background.png looks like this: It has a…
de.
  • 7,068
  • 3
  • 40
  • 69
0
votes
1 answer

UIBarButtonItem Appearance for NavigationControl affecting Toolbar

I set a UIAppearance for a UIBarButtonItem in a UINavigationController like this: [[UIBarButtonItem appearanceWhenContainedIn: [UINavigationController class],nil] setBackgroundImage:bimg forState:UIControlStateNormal…
roocell
  • 2,429
  • 25
  • 28
0
votes
1 answer

Programmatically created UIButtonBarItem not picking up UIAppearance

I've added UIAppearance code in my appdelegate to customize UIButtonBarItem. The back buttons in a nav controller pick up the UIappearance. But the UIButtonBarItems I create programmically to appear on the first navbar dont get the…
roocell
  • 2,429
  • 25
  • 28
0
votes
3 answers

Set background image for UIToolBar

I've seen a lot of people doing this: [[UIToolbar appearance] setBackgroundImage:toolBarImage forBarMetrics:UIBarMetricsDefault]; For me it doesn't work, because my App crashes and says: -[_UIAppearance setBackgroundImage:]: unrecognized selector…
user1734282
  • 388
  • 2
  • 4
  • 17
0
votes
1 answer

In iOS 5, how can I fix a width issue with a Custom Design I want to use for a TabBar. Please see Image

I have the following code in my App Delegate in order to change the appearance of my Tab Bar: [[UITabBar appearance] setBackgroundImage:[UIImage imageNamed:@"tabBar.png"]]; However, the result is not what is intended! a busy cat…
ibjazz
  • 263
  • 5
  • 17
0
votes
2 answers

Where should I place my application wide UI customization

I have a class that I have created to do all the work for customizing appearances. The class is UIAppearance delegate. UI customization currently affects, Navigation Bar Search Bar Tab bar All these elements will not vary with Views as I can not…
Kishor Kundan
  • 3,135
  • 1
  • 23
  • 30
0
votes
1 answer

Resize UIBarButtonItem with UIAppearance in landscape (UIEdgeInsets)

I am using UIAppearance as introduced in iOS 5 to set a custom background image for all the BarButtonItems in my app. The following code is what I use to set it for the back button, and it works fine in portrait mode. However, when the phone is…
Josh Sherick
  • 2,161
  • 3
  • 20
  • 37
0
votes
1 answer

UICollectionViewCell drawing shadow and bound

I have a code for drawing bounds to UICollectionViewCell. It works when I call it in "cellForItemAtIndexPath". [cell.layer setBorderColor:[UIColor redColor].CGColor]; [cell.layer setBorderWidth:1.0f]; [cell.layer setCornerRadius:7.5f]; [cell.layer…
Güngör Basa
  • 628
  • 2
  • 9
  • 27
0
votes
1 answer

Customize UITabbar via Appearance proxy vs setting the properties directly (Differences, Advantages...)

When customizing an UITabBar I have two ways doing this, both work but I'm curious what's the best approach and what advantages, disadvantages I have with both ways? - (BOOL)application:(UIApplication *)application…
user1010563
0
votes
1 answer

Definitive list of classes that support the UIKit UIAppearance protocol

I'm looking for a complete list of classes that support the UIAppearance protocol. I have not been able to find one. I'm open to suggestions for how to programmatically generate such a list (which I have given a tiny bit of thought to already).
livingtech
  • 3,570
  • 29
  • 42
0
votes
1 answer

Changing appearance of UIBarButtonItem also changes position of navigationbar and toolbar?

once again I have a problem with my custom navigation- and toolbar: I've customised their tintColor and the font by using the appearance proxy in didFinishLaunchingWithOptions. Initially the bars should be hidden by setting their center outside the…
0
votes
1 answer

UITabBarController image iOS 5

I created a UITabBarController with storyboard for iOS5. I don't have the UITabBar declared in my ViewController and I can't set background image for tab bar. UIImage *tabBackground = [[UIImage imageNamed:@"tabBarBackground.jpg"]…
user1625435
  • 153
  • 8