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 6606465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:23:55+00:00 2026-05-25T19:23:55+00:00

As the iPad app I am making has been growing its size, it is

  • 0

As the iPad app I am making has been growing its size, it is hard for me to keep track of UI design values. Here, I am talking about values such as a table’s width, background colors, and a title’s font.

I would like to organize all UI design-related values and objects more efficiently.

How do you organize these?

  • Do you #define values in a header file?
  • Do you declare them as global variables or not?
  • Do you put your values one static class?
  • Or do you think not-organizing these values is rather better?

I would like to hear your advice.
Thank you 🙂

  • 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-05-25T19:23:56+00:00Added an answer on May 25, 2026 at 7:23 pm

    Yes it depends, therefore just some rules of thumb…

    Do you #define values in a header file? 
    

    …in cases where I might want to change this locally only, eg for constants, colors, alignments, button images, … the main reason why I do this however is the documentation it allows by giving the local defines a long explaining name

    Do you declare them as global variables or not?
    

    …an all my apps I have a MainDataManager Class, that holds all the variables I need globally – for the UI part often I have my own globally used object. This is extremely useful, simplifies the code, and probably one of the most important things I learned early on. might also see here Using Variable of AppDelegate as a Global Variable – question regarding release/retain

    Do you put your values one static class?
    

    …static classes exist kind of conceptually. Static variables are quite useful when you want to give a method some kind of memory of its own. However, none plays an important role in my UI.

    In general, I like to use IB to layout the screens but set all the button names, labels, texts in the code. Why? Because when I have to localize the app maintaining multiple XIB files (for each language there will be one isolated XIB file to maintain) becomes a real burden even if there is only one single change in the layout.

    All the global constant settings are always kept in GloblDefinitions.h while at the same time I have in my .pch file this entry #import “GlobalDefinitions.h”

    So the combintation of a delegate variable provided globally + GlobalDefinitions.h for constants is my solution.

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

Sidebar

Related Questions

I have been reading The Business of iPhone and iPad App Development: Making and
I am making an iOS app (iPad) that has a very complex layout. I
I am making an iPad app, it currently has multiple UITableViews named like so:
I am making an iPhone and iPad app, which has a requirement for iAds.
I'm making the app-book for ipad like app-magazine. Now I'm using ScrollView and want
I'm making a note taking app for the iPad, and it lets the user
I am developing an iPad app that has a large number of UIViewControllers ,
I will be making an iPad app with many images (embedded) and it will
I am making an iPad app for personal use and I m struggling with
I am making an iPad app and there are textfields with placeholders in it.

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.