iphone - How can I change the width of each component in a UIPickerView? -
how can change width of each component in uipickerview
?
implement pickerview:widthforcomponent:
method in picker's delegate , return appropriate width each component it. e.g.
- (cgfloat)pickerview:(uipickerview *)pickerview widthforcomponent:(nsinteger)component{ switch (component){ case 0: return 100.0f; case 1: return 60.0f; } return 0; }
Comments
Post a Comment