ios - App Is Not Scrolling -
this question has answer here:
- uiscrollview not scrolling 20 answers
i trying view controller scroll, won't work. clue what's wrong?
uiscrollview *scroll = [[uiscrollview alloc] initwithframe:cgrectmake(0,0,320,480)]; scroll.contentsize = cgsizemake(320, 480); [self.view addsubview:scroll]; ggboxview *boxee = [[ggboxview alloc] initwithframe:cgrectmake(12, 56, 144, 120)]; [scroll addsubview:boxee]; this code part of ggviewcontroller class.
you setting frame cgrectmake(0,0,320,480) , content size cgsizemake(320, 480) equal, content size must greater actual size of scrollview in order exhibit scrolling.
Comments
Post a Comment