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
Post a Comment