ios - App Is Not Scrolling -


this question has answer here:

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

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -