GocePetrovski / ScrollableSegmentedControl

Scrollable Segmented Control for when UISegmentedControl is not sufficient
MIT License
245 stars 74 forks source link

I can't find any hint on this error. #38

Closed beajco closed 5 years ago

beajco commented 5 years ago

Screen Shot 2019-04-26 at 1 50 36 PM

help please. ty

GocePetrovski commented 5 years ago

Put breakpoint at line 23, before stepping over, check if the segmentedControl is not nil.

beajco commented 5 years ago

Screen Shot 2019-04-26 at 2 06 25 PM

I tried on a new project.. That is the result sir.

beajco commented 5 years ago

I got it sir. The problem is i used segmented control and drag it to the controller and change it to 'ScrollableSegmentedControl' From @IBOutlet weak var segmentedControl : SegmentedControl! To @IBOutlet weak var segmentedControl : ScrollableSegmentedControl!


I solved it by, using UIView and changing the custom class to ScrollableSegmentedControl