Do not allow to open UIPickerview in Objective C -


let me know if value not available in uipickerview, not allow open uipickerview?

how handle situation in objective c.

thanks you, shriram.

check if

[self.values count]>0 

then write

yourpickerview.delegate=self; yourpickerview.datasource=self; 

if don't call delegate , datasource method won't called

- (nsinteger)pickerview:(uipickerview *)pickerview numberofrowsincomponent:(nsinteger)component { return [self.values count]; } 

Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -