ios - set UIPIckerView height width dynamically in iphone -
this question has answer here:
- how shrink uipickerview on iphone? 5 answers
i want set uipickerview height width dynamically in iphone.please give me idea it.
firstly can change dynamically height , width of uipickerview not uidatepicker go code find out way :-
uipickerview *picker = [[uipickerview alloc] initwithframe: cgrectzero]; picker.showsselectionindicator = yes; picker.autoresizingmask = uiviewautoresizingflexiblewidth; cgsize ps = [picker sizethatfits: cgsizezero]; picker.frame = cgrectmake(0.0, 0.0, ps.width, ps.height + 100);
Comments
Post a Comment