views:

39

answers:

2

I am having view this comes from push view controller through navigation.this view has scroll view,when i run the project view is not scrolling.how do i make it scroll.

A: 

Did you set the content size of the scroll view? Set it to the size of what the scroll view contains.

Rob Lourens
yeh,i already defined content size with height=650 and width =320.
xcodemaddy
+1  A: 

You need to set content size for that view.

scrollView.contentSize = CGSizeMake(scrollView.frame.size.width,TOTAL_HEIGHT_TO_DISPLAY_CONTENT);

Hope this helps.

Jim.

Jim
just for testing purpose set TOTAL_HEIGHT_TO_DISPLAY_CONTENT to 500.It will work.but later on you will have to set TOTAL_HEIGHT_TO_DISPLAY_CONTENT as per content you are displaying.
Jim