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
Post a Comment