ios - How to create an if statement if segment is not selected? -
i want create statement says
if (segmenttitle.selectedsegmentindex == not selected) { segmenttitle.selectedsegmentindex == 0; }
what not selected in c code?
if read docs uisegmentedcontrol
find answer:
if (segmenttitle.selectedsegmentindex == uisegmentedcontrolnosegment) { segmenttitle.selectedsegmentindex = 0; }
Comments
Post a Comment