In objective c Xcode Changing UIImages at the push of a button
<p>When i push the button I would like the first image to show in the UIImageView, stay for a short period of time and then the next image to show.  Only the second image shows after a period of time.  The first  image never comes on.</p>

<pre><code>//  TestProjectViewController.m
//  Created by Jack Handy on 3/8/12.

#import "TestProjectViewController.h"

@implementation TestProjectViewController

@synthesize View1= _view1;
@synthesize yellowColor = _yellowColor;
@synthesize greenColor = _greenColor;


    - (IBAction)button:(id)sender {

        _greenColor = [UIImage imageNamed: @"green.png"];
             _view1.image = _greenColor;

    [NSThread sleepForTimeInterval:2];

        _yellowColor = [UIImage imageNamed: @"yellow.png"];
             _view1.image = _yellowColor;

}
@end
</code></pre>
