Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

nashyo

macrumors 6502
Original poster
Oct 1, 2010
299
0
Bristol
I have set up a new project. I have taken the basic concepts that I've learned from the previous project and applied it to the new project. Now scroll view isn't working.

The pic below shows the size inspector of scroll view. It matches the previous project I run EXACTLY, yet the scroll view won't scroll.

screenshot20120112at152.png


I have scroll view enabled in the scrollview attributes inspector.

screenshot20120112at153.png


In the size attributes inspector, if I change the view Y axis value to -200 , i can see further down the scroll view in storyboard, where I have buttons and labels set. If I run my app at this point, the area displayed in the app is fixed at y -200. It doesn't scroll! All the labels fill with my content as expected.

My previous project behaved as expected in my previous project and all the settings match the same. I have literally put them side by side. Why won't it scroll.

My hair is turning gray because of this! Please help. I &*^ing hate scroll view!

----------

For some reason, setting the content insets and the view height to 800 is wrong. Scroll view works when I set this to 600. Any idea why this is?

AAAAAAANnnnnnd now its not working again. Baffled. Absolutely baffled.
 
Last edited:
I can't help too much because your pictures are not loading but have you set the contentSize property of the scroll view to be greater than it's bounds? Without adjusting the contentSize the scroll view won't know that it needs to scroll.
 
It is common courtesy to use a descriptive thread title so that people clicking on your thread know in advance what it is going to be discussing.
 
Nearly quitting

Shame the pictures not loading. It shows the content size is set appropriately. No idea why this is happening. Spend 5 hours on it now. It's really important to me that I get this done. But after this I Might just put my hands up and walk away from this.
 
Your pictures aren't loading because you used the imageshack.us Link rather than Direct Link.

Just edit your post and change your tags.

And please change the thread title to something more descriptive like "Problem with scrollview" or something.
 
What shows?

His screenshots badly linked from imgshack :

Code:
The pic below shows the size inspector of scroll view. It matches the previous project I run EXACTLY, yet the scroll view won't scroll.
<br>
<br>
<img border="0" alt="" src="http://imageshack.us/photo/my-images/843/screenshot20120112at152.png/">
<br>
<br>
I have scroll view enabled in the scrollview attributes inspector.
<br>
<br>
<img border="0" alt="" src="http://imageshack.us/photo/my-images/827/screenshot20120112at153.png/">
 
His screenshots badly linked from imgshack :

Code:
The pic below shows the size inspector of scroll view. It matches the previous project I run EXACTLY, yet the scroll view won't scroll.
<br>
<br>
<img border="0" alt="" src="http://imageshack.us/photo/my-images/843/screenshot20120112at152.png/">
<br>
<br>
I have scroll view enabled in the scrollview attributes inspector.
<br>
<br>
<img border="0" alt="" src="http://imageshack.us/photo/my-images/827/screenshot20120112at153.png/">

contentSize can't be set using Interface Builder.
 
All fine now

I've done it now. The view and the content size need to differ.

I wasn't using interface builder, I was using storyboard.

Storyboard is simple, but finding out how to use it is so hard.

Thanks
Rob
 
EDIT: See you solved your problem.


In case it is still useful, here are your images.

screenshot20120112at152.png



screenshot20120112at153.png



I ripped out the IMG tag from the Widget link under 'Embed this image'. I think that represents the 'Direct Link' under 'Links to share this image'.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.