ios - How to Show Different View For Selected PickerView? -


i have categories , want show different text-fields user each category.

how can this? tried add different views in same view controller think it's not possible , true way.

my view controllers ss

you need add function

func pickerview(pickerview: uipickerview, didselectrow row: int, incomponent component: int) {     index = row      if (index == 0)     {         //show view     }     else if (index == 1)     {        //show view      }      else  if (index == 2)     {       //show view   } } 

Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -