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

Popular posts from this blog

c++ - How to add Crypto++ library to Qt project -

jQuery Mobile app not scrolling in Firefox -

How to use vim as editor in Matlab GUI -