Skip to content
This repository was archived by the owner on Nov 29, 2022. It is now read-only.
This repository was archived by the owner on Nov 29, 2022. It is now read-only.

when items is not in english, setSelectedSegmentIndex will has no effect #58

@bellchen

Description

@bellchen

when i init control as follow

 _timeControl = [[DZNSegmentedControl alloc] initWithItems:@[NSLocalizedString(@"日榜", @""),
                                                                    NSLocalizedString(@"周榜", @""),
                                                                    NSLocalizedString(@"总榜", @"")]];
_timeControl.tintColor=FZLightColor;

when calling

 [self.timeControl setSelectedSegmentIndex:2 animated:YES];

segmentIndex's tintColor is not FZLightColor

when i init control as follow

_timeControl = [[DZNSegmentedControl alloc] initWithItems:@[NSLocalizedString(@"day", @""),
                                                                    NSLocalizedString(@"week", @""),
                                                                    NSLocalizedString(@"all", @"")]];
_timeControl.tintColor=FZLightColor;

that will effect when calling setSelectedSegmentIndex:animated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions