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
-1
votes
1 answer

How to Change Keyboard Return key type in UISearchBar

I would like to change the string title of the return key of a keyboard invoked by a searchBar in my iOS App. I want to change the title from "Search" to "Done". My searchBar is programmatically created inside a UIView. I have tried to place the…
BlueskyMed
  • 765
  • 7
  • 24
-1
votes
1 answer

How to limit .appearance to NOT effect system ViewControllers like UIActivityViewController?

I use appearance in an existing app for styling and to apply different themes. For example I used UIBarButtonItem.appearance().setTitleTextAttributes(...) to apply a custom font and white color to all UIBarButtonItems within my app. Now I noticed…
Andrei Herford
  • 17,570
  • 19
  • 91
  • 225
-1
votes
1 answer

How to add gradient color to UIView using Custom Class and UIAppearnace() in swift

Hello Everyone I want to add Gradient Background Color to UIView using UIAppearnce() with CustomView Class.I am facing an error - Thread 1: " Illegal axis type, @, for appearance setter, setBorderGradientColortoView1WithFirstColor:secondColor:.…
-1
votes
1 answer

UNITY Appear text next to mouse click

I want to make a text that appears next to the mouse button, where i click on a button. So i have a huge button, and i want that text to appear next to the mouse/touch screen where i clicked. How can i do it? I'am new in this section so please…
Sliwd
  • 13
  • 3
-1
votes
2 answers

How to auto layout an app for different devices.

Apologies in advance for the basic nature of this question. I'm happy to be redirected to a previously answered version of this question, but haven't found it yet. I just finished up the majority of my first app, and am concerned I might have set it…
tfcamp
  • 115
  • 1
  • 9
-1
votes
1 answer

Change theme component for iOS

I would like to create change theme component for my reader app. When user is changing theme then text and background are changing theirs colors. I was looking on other apps and I noticed that they are all using the same themes: white, back and…
Sayaki
  • 769
  • 14
  • 36
-1
votes
1 answer

UI Appearance testing tool?

I am looking for tools to web applications UI testing. I know that there are many tools like Selenium and similar, but I am looking something for testing UI appearance, not UI behavior. I do not want to test if correct form shows in correct moment.…
mats.nowak
  • 329
  • 1
  • 7
-1
votes
1 answer

TableViewCell Appearance only changes the cell's currently in the view

Using UIAppearance, I am changing the Table View Cell's label colour. This works fine but it only colours the cells currently being seen. All the cell's out of the view (not being seen) are still the default colour (black). In a summary, the method…
Colton Anglin
  • 431
  • 3
  • 9
  • 19
-1
votes
2 answers

keep the look of my ios app like it is in ios6 rather than ios7

I have an ios app which was developed during ios5 to ios6 after updating my iPhone to ios7, there's something wrong with it. For example, I had a textfield in an alertView which was supposed to input some password of the users, but in ios7 the…
Wang Liang
  • 941
  • 2
  • 15
  • 34
-1
votes
1 answer

iOS UIAppearance custom shape for widgets

I've been looking at a lot of sample code out there for UIAppearance, and there seem to be a lot of examples, where widgets and status bars are a different colour, or a nice background image, but, how does one create things that are a different…
geekyaleks
  • 1,281
  • 3
  • 18
  • 29
-2
votes
2 answers

UINavigationBar.appearance().isTranslucent not working

When I use this: UINavigationBar.appearance().backgroundColor = UIColor(named: "brown") I get a nav bar that has the correct brown and it is translucent. But I don't want it to be translucent, I just want it to be my brown color. So, I add…
Kenny Wyland
  • 20,844
  • 26
  • 117
  • 229
-2
votes
1 answer

Using UIAppearance for separate UI elements

I'd like to use UIAppearance to set the size of the font of all the UIButtons in my app to 15, and the size of the font in all the UILabels in my app to 10. Here's what I have: UIFont *dinMediumFont = [UIFont fontWithName:@"DINPro-Medium"…
Eric
  • 16,003
  • 15
  • 87
  • 139
-4
votes
3 answers

UIBarButtonItem appearance how to remove text?

I am customizing my nag bar button in iOS7 and I am using the following code: // Customizing the NavBar Buttons UIImage * btHome = [[UIImage imageNamed:@"Home.png"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 3, 0, 3)]; [[UIBarButtonItem…
LilMoke
  • 3,176
  • 7
  • 48
  • 88
1 2 3
29
30