ios - CPPickerView DataSource -


using cppickerview. have working , have been coding bit long think , brain has gone dead appreciated. know answer simple life of me can't see it.

i want load array of strings view, not numbers.

the current method use numbers is:

- (nsstring *)pickerview:(cppickerview *)pickerview titleforitem:(nsinteger)item { return [nsstring stringwithformat:@"%i", item + 1]; } 

how create/edit method make strings appear instead of integers?

if strings in array perhaps want:

- (nsstring *)pickerview:(cppickerview *)pickerview titleforitem:(nsinteger)item {     return yourstringarray[item]; } 

Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -