iphone - Why a uitextfield inside a uiscroll view doesn't scroll? -
i have scrollview contains text field , text view. both 2 scrolled together. how can do? text view scroll.
precisely, title scrolls while user writes in textview and, if user decides set it, can scrolls , refind textfield.
thanks
try this
in .h
iboutlet uiscrollview *scrollview;
and connect in interface builder , in .m file put viewdidload
[scrollview setscrollenabled:yes]; [scrollview setframe:cgrectmake(0,55,320,180)]; [scrollview setcontentsize:cgsizemake(320,320)];
then put textfield , textview inside scroolview in interface builder
Comments
Post a Comment