Search code examples
iosxcodeuisegmentedcontrol

IM trying to use SegmentedControll instead of Buttons for changing views


by default my "FirstSlection" is selected until I press "secondSelection" the Segway won't trigger is there a way around ?

librarian - User - Signup here changing views from segwayIdentif


Solution

  • You can call the the action directly when view controller loads for the default selected item , then the trigger of segmented control selection will handle it in future clicks (when you manually click it)