title: UIView Animation not firing?
body: <p>Okay, after a long while searching and trouble shooting, I'm still stuck. I'm attempting to animate the UIView resize, and yet, I can't get it to work for my life. I'm very new to the iOS library, and Objective-C in general, so this program might not be the most efficient. Thanks in advance.</p>
  
  <p>ViewController.h</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  
  @interface ViewController : UIViewController {}
  
  -(void)animateBars;
  -(void)drawBars;
  
  @end
  </code></pre>
  
  <p>ViewController.m</p>
  
  <pre><code>#import "ViewController.h"
  #import "Background.h"
  #import &lt;QuartzCore/QuartzCore.h&gt;
  
  
  @interface ViewController ()
  
  @end
  
  @implementation ViewController
  
  -(void)animateBars
  {
      CGRect newFrameGreen = CGRectMake(50.0, 0.0, 9.0, self.view.bounds.size.height);
      CGRect newFrameOrange = CGRectMake(65.0, 0.0, 9.0, self.view.bounds.size.height);
      CGRect newFrameYellow = CGRectMake(80.0, 0.0, 9.0, self.view.bounds.size.height);
  
      [UIView animateWithDuration: 10.0
                            delay: 0.0
                          options: UIViewAnimationOptionCurveEaseInOut
                       animations:^{
                           [self.view viewWithTag:1].frame = newFrameGreen;
                           [self.view viewWithTag:2].frame = newFrameOrange;
                           [self.view viewWithTag:3].frame = newFrameYellow;
                       }
                       completion:nil];
  }
  
  
  -(void)drawBars
  {
      UIView *greenBar = [[UIView alloc] initWithFrame:CGRectMake(50.0, 0.0, 9.0, 1.0)];
      UIView *orangeBar = [[UIView alloc] initWithFrame:CGRectMake(65.0, 0.0, 9.0, 1.0)];
      UIView *yellowBar = [[UIView alloc] initWithFrame:CGRectMake(80.0, 0.0, 9.0, 1.0)];
  
      UIColor *green = [UIColor colorWithRed:142.0/255.0f green:149.0/255.0f blue:31.0/255.0f alpha:1.0f];
      UIColor *orange = [UIColor colorWithRed:204.0/255.0f green:82.0/255.0f blue:29.0/255.0f alpha:1.0f];
      UIColor *yellow = [UIColor colorWithRed:254.0/255.0f green:190.0/255.0f blue:16.0/255.0f alpha:1.0f];
      UIColor *clear = [UIColor colorWithRed:175.0/255.0f green:175.0/255.0f blue:175.0/255.0f alpha:0.0f];
  
      NSArray *greenColors = [NSArray arrayWithObjects:(id)clear.CGColor, green.CGColor, clear.CGColor, nil];
      NSArray *orangeColors = [NSArray arrayWithObjects:(id)clear.CGColor, orange.CGColor, clear.CGColor, nil];
      NSArray *yellowColors = [NSArray arrayWithObjects:(id)clear.CGColor, yellow.CGColor, clear.CGColor, nil];
  
      CAGradientLayer *greenGradient = [CAGradientLayer layer];
      CAGradientLayer *orangeGradient = [CAGradientLayer layer];
      CAGradientLayer *yellowGradient = [CAGradientLayer layer];
  
      greenGradient.startPoint = CGPointMake(0.0, 0.5);
      greenGradient.endPoint = CGPointMake(1.0, 0.5);
  
      orangeGradient.startPoint = CGPointMake(0.0, 0.5);
      orangeGradient.endPoint = CGPointMake(1.0, 0.5);
  
      yellowGradient.startPoint = CGPointMake(0.0, 0.5);
      yellowGradient.endPoint = CGPointMake(1.0, 0.5);
  
      greenGradient.colors = greenColors;
      orangeGradient.colors = orangeColors;
      yellowGradient.colors = yellowColors;
  
      greenGradient.frame = greenBar.bounds;
      orangeGradient.frame = orangeBar.bounds;
      yellowGradient.frame = yellowBar.bounds;
  
      [greenBar.layer insertSublayer:greenGradient atIndex:0];
      [orangeBar.layer insertSublayer:orangeGradient atIndex:0];
      [yellowBar.layer insertSublayer:yellowGradient atIndex:0];
  
      greenBar.tag = 1;
      orangeBar.tag = 2;
      yellowBar.tag = 3;
  
      [self.view addSubview:greenBar];
      [self.view addSubview:orangeBar];
      [self.view addSubview:yellowBar];
  }
  
  - (void)viewDidLoad
  {
      [super viewDidLoad];
      [self drawBars];
      [self animateBars];
  }
  
  -(void)viewWillAppear:(BOOL)animated {
      [super viewWillAppear:animated];
      CAGradientLayer *bgLayer = [Background gradient];
      bgLayer.frame = self.view.bounds;
      [self.view.layer insertSublayer:bgLayer atIndex:0];
  }
  
  - (void)didReceiveMemoryWarning
  {
      [super didReceiveMemoryWarning];
      // Dispose of any resources that can be recreated.
  }
  
  @end
  </code></pre>