|
|
|
|
405
|
[mergedAttributes addEntriesFromDictionary:previousAttributes];
|
405
|
[mergedAttributes addEntriesFromDictionary:previousAttributes];
|
406
|
|
406
|
|
407
|
[item setTitleTextAttributes:[mergedAttributes copy] forState:UIControlStateNormal];
|
407
|
[item setTitleTextAttributes:[mergedAttributes copy] forState:UIControlStateNormal];
|
|
|
408
|
+ [item setTitleTextAttributes:[mergedAttributes copy] forState:UIControlStateHighlighted];
|
408
|
}
|
409
|
}
|
409
|
}
|
410
|
}
|
410
|
|
411
|
|
|
|
|
|
421
|
[mergedAttributes addEntriesFromDictionary:previousAttributes];
|
422
|
[mergedAttributes addEntriesFromDictionary:previousAttributes];
|
422
|
|
423
|
|
423
|
[item setTitleTextAttributes:[mergedAttributes copy] forState:UIControlStateNormal];
|
424
|
[item setTitleTextAttributes:[mergedAttributes copy] forState:UIControlStateNormal];
|
|
|
425
|
+ [item setTitleTextAttributes:[mergedAttributes copy] forState:UIControlStateHighlighted];
|
424
|
}
|
426
|
}
|
425
|
|
427
|
|
426
|
// At the moment, this seems to be the only thing that gets the back button correctly
|
428
|
// At the moment, this seems to be the only thing that gets the back button correctly
|
427
|
[navButtonTextAttributes removeObjectForKey:NSForegroundColorAttributeName];
|
429
|
[navButtonTextAttributes removeObjectForKey:NSForegroundColorAttributeName];
|
428
|
[[UIBarButtonItem appearance] setTitleTextAttributes:navButtonTextAttributes forState:UIControlStateNormal];
|
430
|
[[UIBarButtonItem appearance] setTitleTextAttributes:navButtonTextAttributes forState:UIControlStateNormal];
|
|
|
431
|
+ [[UIBarButtonItem appearance] setTitleTextAttributes:navButtonTextAttributes forState:UIControlStateHighlighted];
|
429
|
}
|
432
|
}
|
430
|
|
433
|
|
431
|
NSString *navBarButtonColor = self.navigatorStyle[@"navBarButtonColor"];
|
434
|
NSString *navBarButtonColor = self.navigatorStyle[@"navBarButtonColor"];
|