Hello,
I've a UIViewController and a UIImageView, on UIImageView i want to flip between 2 images, which i'm not able to achieve.
This is the code i've written, plz correct me if i'm wrong.
UIViewController* VC = [[UIViewController alloc]init];
VC.view.backgroundColor = [UIColor redColor];
UIImageView* imgView = [[UIImageView alloc]initWithFrame:CGRectMake(0,0,320,400)];
[imgView setImage:[UIImage imageNamed:@"Image_A.jpg"]];
[VC.view addSubview:imgView];
sleep(2);
[imgView setImage:[UIImage imageNamed:@"Image_B.jpg"]];
[VC.view addSubview:imgView];
[window addSubview:VC.view];
so when i execute this project, only Image_B is displayed on screen, while i want Image_A to be displayed then on sleep(2), Image_B has to be displayed.
How would i make it possible??
Thank You.