title: Adding Items to UIScrollView Dynamically
body: <p>I am getting crazy on this! I have the following code and it does not add anything to the UIScrollView. The view when rendered in emulator appears complete white. </p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
  
      // add scroll view to the view 
  
        self.scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0,self.view.frame.size.height - 200,self.view.frame.size.width,110)];
  
      self.scrollView.contentSize = CGSizeMake(400, 80);
      [self.scrollView setScrollEnabled:YES];
      [self.scrollView setPagingEnabled:YES];
  
  
  
      NSArray *imageNames = [NSArray arrayWithObjects:@"kidontrike_4.png",@"mockup_car2.png",@"mockup_car1.png", nil];
  
      for(NSString *imageName in imageNames) 
      {
          UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:imageName]];
  
          imageView.frame = CGRectMake(0, 0, 100, 100);
  
          [self.scrollView addSubview:imageView];
      }
  
  
      [self.view addSubview:self.scrollView];
  
  
  }
  </code></pre>
  
  <p>UPDATE 1: </p>
  
  <p>For some reason even adding a view with background color does not seems to appear. I just see a white screen. </p>
  
  <pre><code>@property (nonatomic,weak)  UIScrollView *scrollView; 
  
  - (void)viewDidLoad
  {
      [super viewDidLoad];
  
      // add scroll view to the view 
  
        self.scrollView = [[UIScrollView alloc] initWithFrame:self.view.frame];
  
      self.scrollView.contentSize = CGSizeMake(80, 80);
      [self.scrollView setScrollEnabled:YES];
      [self.scrollView setPagingEnabled:YES];
  
  
      UIView *someView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)];
      [someView setBackgroundColor:[UIColor greenColor]];
  
      [self.scrollView addSubview:someView];
      [self.view addSubview:self.scrollView];
  
  
  }
  </code></pre>