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

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -