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

UINavigationBar and UITabBar Appearance proxies weird result

When I use the below code from a singleton, UITabBar appearance is not working completely (not changing at all), and UINavigationBar appearance is changing arbitrarily, not according to switch cases. #pragma mark - UITabBarController Delegate -…
Bartu
  • 2,189
  • 2
  • 26
  • 50
0
votes
1 answer

Button text hidden iOS9 UIActivityViewController

I have already tried a couple of approach while resolving this issue. Something new in iOS9. As soon as I touch the button control on UIAcitivityView and drag it away the text becomes available. I am not pretty much sure what it is. [[UIView…
Akhilesh Sharma
  • 1,580
  • 1
  • 17
  • 29
0
votes
0 answers

UIBarButtonItem change font after close modal ViewController

I set default appearance in AppDelegate: NSDictionary *barButtonAppearanceDict = @{NSFontAttributeName : FONT_MAIN_NAVIGATION}; [[UIBarButtonItem appearance] setTitleTextAttributes:barButtonAppearanceDict…
4eGenus
  • 23
  • 2
0
votes
1 answer

UIBarButtonItem bold non-standard font when selected/active

I want to setup UIBarButtonItem so that it uses a different font throughout my app. I'm doing this using appearance, however I have hit an issue with how to display the font in bold when its selected. Here is what I want to do: var…
user843337
0
votes
1 answer

UIAppearance for UINavigationBar ios8

In my application currently I have implemented custom view in place of UINavigationBar. But there are 14-15 screens. So I repeatedly created that top view fro each screen. So while surfing for the solution to avoid this repetition. I came across…
iGatiTech
  • 2,306
  • 1
  • 21
  • 45
0
votes
2 answers

UIBarButtonItem backButtonBackgroundImage: gets stretched

I am using UIAppearance to set a custom backButtonBackgroundImage as well as hide the back button title: // Back Button Image [[UIBarButtonItem appearance] setBackButtonBackgroundImage:[UIImage imageNamed:@"ZSSBackArrow"]…
Nic Hubbard
  • 41,587
  • 63
  • 251
  • 412
0
votes
1 answer

Why are my UIBarButtonItem buttons getting a background color on some devices?

On some devices, my UIBarButtonItem buttons have a background color. I don't know what is causing this. Here is how it looks on some devices: It should, and does, look like this, on most devices and in the simulator for all device types: I do…
Elijah
  • 8,381
  • 2
  • 55
  • 49
0
votes
0 answers

How to globally customize back button?

Following up on this question, where the accepted answer describes a way to globally customize the UINavigationController's back button, using this code in the implementation of a category named UINavigationItem+MyBackButton.h: #import…
0
votes
2 answers

Change statusBar Color ios8 - Xcode 6.1

I have a tabBarApp, the 1 tab is a NavigationController and include the status bar the 2 is a simple viewCOntroller where I added a NavigationBar ( it include the status bar) the 3 tab doesn't have a status bar I changed my Plist file to…
Marco
  • 81
  • 4
0
votes
1 answer

Will using appearance proxy on UILabel get my app rejected because it alters UIAlertView?

I'm hoping to customize all of the fonts in my app, and have been using the [UILabel appearance] API so far as it seems like the path of least resistance. I noticed that this also affects the labels inside of the UIAlertView (as expected), but I'm…
oztune
  • 325
  • 3
  • 8
0
votes
1 answer

Setting the font using UIAppearence proxy sets everywhere

I want to ask a simple question related to setting some attribute using UIAppearence Proxy class in ios application. Lets say that i am setting the font of UILabel using UIAppearence Proxy class. Now does it sets the font of UILabel everywhere in…
Madu
  • 4,849
  • 9
  • 44
  • 78
0
votes
1 answer

Return custom UILabel from a subclass of UITableViewCell (programatically)

I'm new on iOS and so sorry for my bad english. I want to change the appearance theme to my application through the UIAppearance proxy. Then I have some different cells that are a subclass of UITableViewCell with a style for each one. Some labels…
fras
  • 1
  • 2
0
votes
1 answer

Preventing iOS 7 UINavigationBar from animating barTintColor change with UIAppearance

I'd like to change every UINavigationBar's barTintColor with no animation. Is this possible? On iOS 7, UINavigationBar animates barTintColor changes if it is translucent. If translucent is set to NO, the barTintColor is changed, and then translucent…
jaggedcow
  • 1,405
  • 1
  • 12
  • 23
0
votes
1 answer

UIAppearance changing UITableView backgroundView crashes main thread

I have created a tiny little project to show what is happening. You can get it from my GitHub repo. As a brief explanation. I have an app that I want to use an image as the background view of several UITableViews. At first I was setting it every…
Fogmeister
  • 76,236
  • 42
  • 207
  • 306
0
votes
1 answer

Is there a way to set the placeholder color of a UITextField with UIAppearance

I have found that I can set the placeholder color by changing the textColor of a label contained with UITextField. [[UILabel appearanceWhenContainedIn:[UITextField class], nil] setTextColor:[UIColor lightGrayColor]]; But this also changes…
Snymax
  • 357
  • 4
  • 18