Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7776157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:48:32+00:00 2026-06-01T17:48:32+00:00

I have learned that in iOS 5, properties that are marked with UI_APPEARANCE_SELECTOR can

  • 0

I have learned that in iOS 5, properties that are marked with UI_APPEARANCE_SELECTOR can be styled using appearance. Eg [[UINavigationBar appearance] setTintColor:….]. However, I seem not to be able to style all elements. UIButton, for instance, has no properties marked UI_APPEARANCE_SELECTOR, hence I am not able to use the above technique to style it.

My question is: How do I best style elements globally (all appearances in the application), when I cannot use appearance?

Right now I have defined some colors, fonts, shadow offsets etc. that I use many different places in my code. This allows me to change the look and behaviour of a lot of elements, but it still doesn’t allow me to style all instances of a certain object with only one line of code.

Edit

In lack of better solutions I have created a number of categories with simple methods as the following:

+ (UIButton *)customLabelWithFrame:(CGRect)frame andText:(NSString *)text;

Also I have found that – in combination with the described categories – stretchable images are nice and useful.

With the above I am able to style in a global-ish manner, however I am not satisfied with the result and I still hope to find a better solution

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T17:48:33+00:00Added an answer on June 1, 2026 at 5:48 pm

    What about standard subclassing or factory classes, as you mentioned yourself!?
    For buttons I’m using factory classes myself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have learned from various tutorial that If a client can reasonably be expected
I just learned (the hard way) that Java Component s can only have one
I have learned that browsers can only load a few files from the same
I have learned that when using android:entries with a ListView , it uses android.R.layout.simple_list_item_1
From the Apple WWDC we have learned that iOS Safari 5 has tabs, and
I have learned that in a class you can declare variables and methods. They
I have learned that we can't instantiate an abstract class. But today i tested
I have learned that Windows uses UTF-16LE on x86/x64 systems. What about Linux? Which
I'm required to write a JCE provider. I have learned that I need to
I recently learned that all stl containers have swap function: i.e. c1.swap(c2); will lead

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.