ios - set UIPIckerView height width dynamically in iphone -


this question has answer here:

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

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -