iphone - Overlaying the screen with a black rectangle? -


I would like, when my iPhone app is loaded for the first time, temporarily overlay the entire screen with a black rectangle . Everything will be black for a moment, so that everything will be covered below.

How to write code to anyone?

Thanks

Perhaps you can do whatever you want to be rectangular Assuming an image is:

  - (zero) viewDidoadload {[Super Viewedload]; UIImage * img = [UIImage imageNamed: @ "black_tantange.png"]; UIImageView * imgView = [[UIImageView alloc] initWithImage: img]; ImgView.frame = CGRectMake (0.f, 0.f, 320.f, 480.f); [Self.view addSubview: imgView]; [NSTimer scheduled timer with time interval: _YOUR_TIME_ Goal: Self Selector: @Selector (timerfinished) User Ink: IMG repeats Viview: no]; [IMG Live release]; } - (zero) timerfinished timer {UIImageView * imgView = (UIImageView *) [Timer user Infoc]; [IMGOView deletedFrosporview]; }    

Comments