possible duplicate:
how use scroll view on iphone?
hi everyone, working scroll view , want scroll simple page , how can done on iphone, mean changes need on interface builder , , class , code added. in advance
you need drag uiscrollview
in file.xib uiview
longer typical uiview
. drag uiview
uiscrollview
.
now drag uiscollview
in uiview
linked filesowner's view.
now in file.h
make outlet of uiscrollview
iboutlet uiscrollview *scrolldown;
then link uiscrollview
in interfacebuilder.
then in viewdidload
method write these lines.
[scrolldown setscrollenabled:yes]; [scrolldown setcontentsize:cgsizemake(320, 650)]; //(320, 650) size of view inside uiscrollview.
Comments
Post a Comment