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

iOS UITabBar Background Image Hides Unselected Tabs

I am using the appearance method for UITabBar to set a Background Image on my tab bar. When I do this, the unselected icons on the tab bar do not appear any. What do I need to do to make sure those are visible, even when not selected?
user717452
  • 33
  • 14
  • 73
  • 149
0
votes
2 answers

Random iOS 6 crash with iOS 7 SDK

My current main Application is randomly crashing on iOS 6 devices when i compile with iOS 7. It is system deep i think and don't know how to fix this little nasty bug. In my App there are plenty of iOS 6 user with this crash and it's driving me…
mariusLAN
  • 1,195
  • 1
  • 12
  • 26
0
votes
1 answer

UINavigationBar. Apperance. setBarTintColor doesn't work

When I call [[UINavigationBar appearance] setBarTintColor:[UIColor greenColor]]; in didFinishLaunchingWithOptions All works fine, but the following code gives white color: [[UINavigationBar appearance] setBarTintColor:[UIColor colorWithRed:21.0…
Max
  • 2,293
  • 5
  • 32
  • 48
0
votes
0 answers

Why is UIAppearance not working in applicationWillEnterForeground

I am trying to implement different themes to my application. The user can select the different themes in the Settingsbundle, then the application should display the theme according to the user decision. I call the theming method in…
David Gölzhäuser
  • 3,525
  • 8
  • 50
  • 98
0
votes
2 answers

Custom UITableViewCell label text doesn't change back on deselect

I have a custom subclass of UITableViewCell. I am customizing the labels contained within the cell by setting some attributes of UILabel's appearance proxy, as follows: [UILabel appearanceWhenContainedIn:[UITableViewCell class], nil].textColor =…
Jamie Forrest
  • 10,895
  • 6
  • 51
  • 68
0
votes
2 answers

UIButton apperance change disclosure too why? how to avoid it?

So when I customize my button I put a background image like this: - (void) styleUIButtons { UIImage *buttonNormalBg = [[UIImage imageNamed:@"button_normal" ] stretchableImageWithLeftCapWidth:0 topCapHeight:0]; UIImage *buttonSelectedBgb =…
Necronet
  • 6,704
  • 9
  • 49
  • 89
0
votes
2 answers

Change Color of UIImage Button

I would like to change the color of an image that I have placed as a button in my navBar. The code I am using to create the image/button is: UIImage *btnGoImage = [UIImage imageNamed:@"settings_cog.png"]; UIButton *btnGoPre = [UIButton…
user2492064
  • 591
  • 1
  • 8
  • 21
0
votes
1 answer

How can I access a class's appearance proxy in a class method which performs custom drawing?

I've set a 'tintColor' property on an appearance proxy for a UIView subclass class which can draw one of 5 different shapes using CAShapeLayer and UIBezierPath. I am using a class method to return a UIView the required…
psobko
  • 1,548
  • 1
  • 14
  • 24
0
votes
1 answer

Xamarin Compile for iOS 5/6 + using XCode 5 and Xamarin 7?

I have installed XCode 5 and supporting new Xamarin Studio etc. I have legacy apps designed for iOS5/6 that I have to maintain as is with respect to UIAppearance/MT.Dialog etc. Is there a XCode5/Xamarin.iOS option that lets me compile the "old way"…
Ian Vink
  • 66,960
  • 104
  • 341
  • 555
0
votes
1 answer

UIBarButtonItem appearance in App Delegate non stretchable

I need to set an image as the back button for my entire app. I tried this code in my AppDelegate.m file: [[UIBarButtonItem appearance] setBackButtonBackgroundImage:[UIImage imageNamed:@"back-button.png"] forState:UIControlStateNormal…
Cody Winton
  • 2,989
  • 5
  • 25
  • 48
0
votes
1 answer

Change themes on iOS

Currently i'm using UISS to change some styles of my app, but I think its not possible to style specific controls. Eg. If I want to change the image of a button with tag 1 or with the id 'xpto'. Is there any way to do this with UIAppearance or with…
fnxpt
  • 434
  • 3
  • 13
0
votes
2 answers

Custom UITableViewCell using UIAppearance proxy

I would like to set a custom image for all the UITableViewCell accessory view in my app. I've tried using this code: [[UITableViewCell appearance] setAccessoryView:[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"table-arrow.png"]]]; but it…
Claus
  • 5,662
  • 10
  • 77
  • 118
0
votes
1 answer

Customising UISegmentController issues

I am working with segemntController, I am setting different different images for pressed and normal state of segments, below is my code (void)viewdidLoad { NSArray *imageArray = [NSArray arrayWithObjects: [UIImage…
Ranjit
  • 4,576
  • 11
  • 62
  • 121
0
votes
2 answers

appearance proxy not working as intended for UIButton font

im currently styling my app via the appearance proxy and i ran into this problem: when i set properties on the UIButton appearance my font is ignored: [buttonAppearance setTitleColor:darkColor…
Maximilian Körner
  • 846
  • 11
  • 31
0
votes
1 answer

Customizing Both UISliders inside MPMoviePlayerViewController?

Im currently trying to customize several things inside the MPMoviePlayerViewController but I'm having trouble with one of the sliders. As you can see below, it features 2 sliders, a volume slider, and a small duration slider. By using the…
KingPolygon
  • 4,753
  • 7
  • 43
  • 72