ios - Adjusting frame of controls programatically -
i using uibutton control through xib file. want set frame of button programatically. have tried below
btn.frame=cgrectmake(0,0,200,70);
it doesn't change position , stays on same x , y co-ordinates have placed in xib file.
please me this.
use first 2 parameter represent x,y coordinate button , other 2 represent height , width of button
btn.frame = cgrectmake(80.0, 210.0, 160.0, 40.0);
Comments
Post a Comment