Upvote:3

Aprove answer

You've connected an action method named segmentControl: but in your code the action method is named indexChanged.

Update your connection from the segmented control outlet to the action method.


Credit Goes to: stackoverflow.com

Related question with same questions but different answers