Skip to content

Instantly share code, notes, and snippets.

@adamgall
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamgall/9808112 to your computer and use it in GitHub Desktop.
Save adamgall/9808112 to your computer and use it in GitHub Desktop.
@interface NIScheduleNavigationDropdown : UIView
@property (nonatomic, weak) IBOutlet UIView *containerView;
@property (nonatomic, weak) IBOutlet UILabel *lblAgenda;
@property (nonatomic, weak) IBOutlet UILabel *lblMonth;
@property (nonatomic, weak) IBOutlet UILabel *lblYear;
- (void)setHighlightedItem:(NSString *)screen;
@end
@implementation NIScheduleNavigationDropdown
- (id)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
[[NSBundle mainBundle] loadNibNamed:@"NIScheduleNavigationDropdown" owner:self options:nil];
[self addSubview:self.containerView];
self.hidden = YES;
}
return self;
}
- (void)setHighlightedItem:(NSString *)screen
{
self.lblAgenda.textColor = [screen isEqualToString:@"ScheduleAgenda"] ? [UIColor NIScheduleDropdownActive] : [UIColor NIScheduleDropdownDefault];
self.lblMonth.textColor = [screen isEqualToString:@"ScheduleMonth"] ? [UIColor NIScheduleDropdownActive] : [UIColor NIScheduleDropdownDefault];
self.lblYear.textColor = [screen isEqualToString:@"ScheduleYear"] ? [UIColor NIScheduleDropdownActive] : [UIColor NIScheduleDropdownDefault];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment