objective c - dynamically load contents on IOS 5 application -


i new ios development , need load contents (buttons) dynamically when application first starts. can me guide towards that? attended training unfortunately didn't learn that. have method in viewcontroller how execute method onload?

thanks help.

here's tutorial might find useful: http://blog.austinlouden.com/post/47644627216/your-first-ios-app-100-programmatically

it's 2 part tutorial showing how add content programmatically.

here's example:

// create button object uibutton *button = [uibutton buttonwithtype:uibuttontyperoundedrect];      // attach method 'buttonpressed' when button pressed. [button addtarget:self action:@selector(buttonpressed:) forcontrolevents:uicontroleventtouchdown];   // set text shown on button [button settitle:@"buttontitle" forstate:uicontrolstatenormal];   // set size of button button.frame = cgrectmake(80.0, 210.0, 160.0, 40.0);   // add button view [view addsubview:button];  

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -