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

StevenHu

macrumors member
Original poster
I'm puzzled why my scroll height quit working. It's set at 2285 height, but scrolls only about 30-40 pixels. Earlier, it was closer to 2000 and it worked fine in the simulator and device, then I lengthened it a little. The number is the same below as in IB's Scroll View Size dialog.

No error or warning messages. I trashed the earlier builds and did a clean. The scroll view is connected to the File's Owner correctly (to myScrollView). Here's the implementation file. Any idea why the scroll would shorten dramatically?

Thanks!
Steve

Code:
#import "FrontSuspension1.h"
#import "Constants.h"

@implementation FrontSuspension1

@synthesize myScrollView;


// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
	myScrollView.contentSize=CGSizeMake(320,2285); 
[super viewDidLoad];
 
self.title = NSLocalizedString(@"Front Suspension", @""); // See Localizable.strings/en
}

- (void)didReceiveMemoryWarning {
	// Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
	
	// Release any cached data, images, etc that aren't in use.
}

- (void)viewDidUnload {
	// Release any retained subviews of the main view.
	// e.g. self.myOutlet = nil;
}


- (void)dealloc {
	[myScrollView release];
    [super dealloc];
}


@end
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.