Currently i'm using UISS to change some styles of my app, but I think its not possible to style specific controls. Eg. If I want to change the image of a button with tag 1 or with the id 'xpto'. Is there any way to do this with UIAppearance or with UISS?
I have a button like:
UIButton *xpto = [[UIButton alloc] init];
and I want to theme it when a method is called, at the moment I'm using UISS to theme my objects with
-(void) changeTheme:(NSString*)themeName{
NSString *filePath = [[NSBundle mainBundle] pathForResource:themeName ofType:@"json"];
AppDelegate *dlg =[[UIApplication sharedApplication] delegate];
dlg.uiss.style.url = [NSURL fileURLWithPath:filePath];
[dlg.uiss reloadStyleAsynchronously];
}
json file:
{
"UIButton": {
"titleColor:normal": "red"
}
}
My only issue is that this changes all the UIButtons and I only want to change xpto. Is there any way to define something like bellow to only change this button.
"UIButton#xpto": {
"titleColor:normal": "red"
}