Skip to content

initSortedSegmentsArray fails when MultiSelectSegmentedControl was created with Storyboard  #1

@chrizztus

Description

@chrizztus

When I create a MultiSelectSegmentedControl using Storyboard from Xcode (4.6.2) the segments of the MultiSelectSegmentedControl won't be sorted (or can't be).

The initial origin x values from sortedSegments array are either 0 or -1. My assumption is that the segmented control created with Storyboard is handled on a different way from xib files.

My current workaround is to sort the segmentsArray again when the valueChanged method is called for the first time. At this time the origin x values are different from 0 or -1 and can be sorted as intended.

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