Hi All,

I'm working from "Scroll View Programming Guide for Cocoa" [1]. All
items are IBOutlets (even the ScrollView), and all outlets are
verified in ViewDidLoad via ASSERTs (no asserts fire). I believe I
have followed the instructions under Creating a Scroll View in
Interface Builder. Unfortunately, there is no scrolling.

ViewDidLoad also includes the following:
  scrollView.scrollEnabled = YES;
  scrollView.contentSize = [self.view sizeThatFits:CGSizeZero];

After following Steps 1 - 4, what is the layout supposed to look like under IB?

+ File Owner
+ First Responder
+ View
  + Scroll View
    + Control 1
    + Control 2
    + ...

Or

+ File Owner
+ First Responder
+ Scroll View
  + View
    + Control 1
    + Control 2
    + ...

When I get to step 3 and [loosely] follow "Choose Layout > Make
subviews of > Scroll View", I get the first layout (View is parent of
ScrollView). But no scrolling.

My controls need about 610 px (height). Which View (vanilla View or
Scroll View) is supposed to 411 px (available screen), and which is
supposed to be 610 px (sized for controls)?

Finally, the documentation states to use ""Choose Layout > Make
subviews of > ...". I don't have "Make subviews of" in IB 3.2.6 (iOS
4.3). I only have an "Embed Objects In". And I can't select the "View"
(per Step 2) when making a subview - I can only select all the
Controls and embed all the controls.

Should I be working form a different document? Perhaps the doc is not for 3.2.X.

Jeff

[1] 
http://developer.apple.com/library/mac/#documentation/cocoa/Conceptual/NSScrollViewGuide/Articles/Creating.html
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to