rs / SDSegmentedControl

A drop-in remplacement for UISegmentedControl that mimic iOS 6 AppStore tab controls
MIT License
1.2k stars 180 forks source link

Crashed on IOS 7 beta... #42

Closed alansuhe closed 11 years ago

alansuhe commented 11 years ago

and I tested my app with XCode5 beta1,below is the error info: 2013-06-13 10:58:03.867 ...... * Assertion failure in -[SDSegmentedControl setSelectedSegmentIndex:], ...../SDSegmentedControl/SDSegmentedControl.m:269 2013-06-13 10:58:03.980 ..... * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: selectedSegmentIndex < (NSInteger)self._items.count'

so the problem:

after removed " NSParameterAssert(selectedSegmentIndex <(NSInteger)self._items.count);" the error info: * Terminating app due to uncaught exception 'NSRangeException', reason: '* -[__NSArrayM objectAtIndex:]: index 5 beyond bounds [0 .. 4]'

ttv100682 commented 11 years ago

I also got this issue.

tkunstek commented 11 years ago

Same problem. Also tried changing my SDK version to 6.1 in Xcode5 DP

4nd413 commented 11 years ago

i have solved with this code ...