iOS Aaaaaahhhh!

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.



I have scroll view enabled in the scrollview attributes inspector.



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:

ppilone

macrumors 6502
Jan 20, 2008
361
0
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.
 
Comment

KnightWRX

macrumors Pentium
Jan 28, 2009
15,046
4
Quebec, Canada
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.
 
Comment

nashyo

macrumors 6502
Original poster
Oct 1, 2010
299
0
Bristol
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.
 
Comment

KnightWRX

macrumors Pentium
Jan 28, 2009
15,046
4
Quebec, Canada
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.
 
Comment

KnightWRX

macrumors Pentium
Jan 28, 2009
15,046
4
Quebec, Canada
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/">
 
Comment

dejo

Moderator
Staff member
Sep 2, 2004
15,981
450
The Centennial State
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.
 
Comment

nashyo

macrumors 6502
Original poster
Oct 1, 2010
299
0
Bristol
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
 
Comment

xStep

macrumors 68020
Jan 28, 2003
2,013
100
Less lost in L.A.
EDIT: See you solved your problem.


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







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'.
 
Comment

dejo

Moderator
Staff member
Sep 2, 2004
15,981
450
The Centennial State
I wasn't using interface builder, I was using storyboard.
When you're editing a Storyboard, you're still using Interface Builder, albeit in a newer, integrated way. That is, Interface Builder is no longer a separate app but "cooked into" Xcode.
 
Comment
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.