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

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -