ScrollView won`t scroll after object is placed -


i guess embracing start frustrated: i`m writing code first time please help. working x-code, objective-c.

i able scroll on app-pages, added uiscrollview:

@interface heggviewcontroller : uiviewcontroller { iboutlet uiscrollview *scroller;  }  @implementation heggviewcontroller  - (void)viewdidload { [scroller setscrollenabled:yes]; [scroller setcontentsize:cgsizemake(320, 1000)]; [super viewdidload]; 

it works fine until add something. button, picture, label...... can add buttons scrollview or need place else first

what have done wrong?

thanks help..

you didn't show code add objects, if following, must work fine:

// create image uiimageview *image = [[uiimageview alloc]initwithframe:cgrectmake(79, 20, 100, 100)]; // add image scrollview [scroller addsubview:image]; 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -