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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -