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.
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
Post a Comment