setting the current selectedIndex programmatically doesn't show the selecteditem
aviya-smila opened this issue · 2 comments
aviya-smila commented
Hi,
I'm facing an issue when setting the current selectedIndex programmatically doesn't show the selected item.
when trying to debug I noticed that the button does'nt include any uilabel.
hukjordanjanaq commented
I did it on viewDidAppear and it works. Maybe the view is not setting the selection when it's created.
KarimEbrahemAbdelaziz commented
Hi @aviya-smila ,
Just as @jordanjanaq said, you need to set it in viewDidAppear
as I didn't set the selection while creating the view.
Thank you :)