I'm loading a UIScrollView with UIImageViews. imageViews below is an NSMutableDictionary of UIImageViews. The scrollview is an IBOutlet with scrolling and paging enabled. The loop adds two images. However, I only ever see the first image in the scrollview and am not able to scroll. Is there something else I need to enable for scrolling to work?
for(NSString *s in [imageViews allKeys]){
UIImageView *myImageView = [imageViews valueForKey:s];
myImageView.frame = CGRectMake(0, 0, 120, 90);
myImageView.contentMode = UIViewContentModeScaleAspectFit;
scrollView.contentSize = CGSizeMake(120, 90);
[scrollView addSubview:myImageView];
}
[scrollView layoutSubviews];