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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:39:27+00:00 2026-05-26T05:39:27+00:00

hello all m a newbie to iphone development. I have 5 themes in my

  • 0

hello all m a newbie to iphone development.

I have 5 themes in my application.

I have static images for every theme(for labels n buttons and all), but i dont know how i can apply or change new theme to whole application. I read through singleton but cant understand how can i use it to change images of whole application.

Is there any other way to apply theme to application or is the singleton is the only method, if yes, then how can i use it.

EDIT: This is my code of singleton class but i cant found any way to implement images for various themes.

#import "MyClass.h"




@implementation MyClass

+ (MyClass *)sharedInstance
{
    static MyClass *instance;
    @synchronized(self)
    {
    if(!instance)
    {
        instance = [[MyClass alloc] init];
    }
    }

return instance;
}
  • 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-26T05:39:28+00:00Added an answer on May 26, 2026 at 5:39 am

    You should look into the UIAppearance proxy in iOS 5. For earlier versions the singleton approach seems fine, you request an appearance change to the singleton which changes its various images, then either sends a notification (NSNotification) to inform any interested parties who would want to update their interface accordingly. Or you can set key value observers (KVO) on the singleton properties so they are automatically informed when one of them changes.

    This post shows you how to implement a singleton. It’s just a way to be able to access the same instance of a class from anywhere. Here is a link to a discussion about the singleton design pattern along with a more involved “pure” singleton implementation.

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

Sidebar

Related Questions

hello all its my first application using Zend Framework i have followed tutorial it
Hello All! I'm active in a fairly large project, but I have limited experience
Hello all in my iphone application after sending login xml request am getting following
hello all i am working on a project in which i have a webpage
hello all I have a small dialog which I created dynamically, which has a
hello all this seems to be my problem I have a table in mysql
Problem Hello all! I have this code which takes my jpg image loops through
Hello to all, Double d = 1.000000000000000000000000000000001; System.out.println(d); The code above prints 1.0 but
Hello all I have a problem with understanding the bitsort program in Bentley's classic
Hello all does anyone know if it's possible or that the UITableviewcells have a

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.