You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nice code but there is a bug when orientation switched to landscape. The view is not updated along with its thumbs.
the SVSegmentedControl setFrame method should also call [self updateSectionRects] to update the section rects which works fine except that new correct thumbrects are added also but to an existing array so if have 6 thumbrects , 6 new correct thumbrects are at the end of the array. self.thumbrects should removeAllObjects before addObject loop...
When an app calls setFrame in a landscape or portrait change to adjust the SVSegmentedControl size the the section fixes one thing and updates the control but not the thumbs (self.thumbrects). The loop in updateSectionRects does an addObject to self.thumbrects to add the correct new thumb rects, however, if self.thumbrects already exists a [self thumbrects removeAllObjects] should be called first otherwise keep adding rects.
The text was updated successfully, but these errors were encountered:
Nice code but there is a bug when orientation switched to landscape. The view is not updated along with its thumbs.
the SVSegmentedControl setFrame method should also call [self updateSectionRects] to update the section rects which works fine except that new correct thumbrects are added also but to an existing array so if have 6 thumbrects , 6 new correct thumbrects are at the end of the array. self.thumbrects should removeAllObjects before addObject loop...
When an app calls setFrame in a landscape or portrait change to adjust the SVSegmentedControl size the the section fixes one thing and updates the control but not the thumbs (self.thumbrects). The loop in updateSectionRects does an addObject to self.thumbrects to add the correct new thumb rects, however, if self.thumbrects already exists a [self thumbrects removeAllObjects] should be called first otherwise keep adding rects.
The text was updated successfully, but these errors were encountered: