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;
}