iPhone Splash View

I found THIS useful code for a class dedicated to displaying a startup image. Essentially it adds a UIImageView ontop of the current view then animates it away. The main use case is for the startup splash and it works nicely.

However there are a few cases where it almost fits other use cases, specifically for things like an About or Other Games page which might just have some small amount of static information. All it is really missing is an additional animateIn property to mirror the existing animate property.

Adding this required a few small changes, in splashView.h:
SplashViewAnimation animation;
SplashViewAnimation animationIn;
....
@property SplashViewAnimation animation;
@property SplashViewAnimation animationIn;

In splashView.m, synthesize the new variable and update the startSplash method:

Now in addition to using the splashView class for a startup splash image I can use it to display other static pages like so:
splashView *mySplash = [[splashView alloc] initWithImage:
[UIImage imageNamed:@"SomeImage.png"]];
mySplash.animationIn = SplashViewAnimationSlideDown;
mySplash.animation = SplashViewAnimationSlideUp;
[mySplash startSplash];
[mySplash release];

Comments

  1. Apple continues to say it supports developers, and it all the time quotes figures for quantity of} jobs the iOS ecosystem has created in the world, but it's fantastic with stopping people's earnings. In 2018, it dropped its App Store affiliate program, switching off a revenue stream that was maintaining web sites and publications going. What's not debatable is the direct causal relationship that there's now between gambling and a few new revenue for Apple. And whereas it feels like may be a|it is a} new factor, it is one other step away from what Apple 토토사이트 has claimed to face for.

    ReplyDelete
  2. The European-style layout has a single zero, and the American fashion layout is usually a double-zero. The American-style roulette table with a wheel at one finish is now used in most casinos because of|as a result of} it has a higher house edge in comparison with} a European layout. In some types of early American roulette wheels, there were numbers 1 to 28, plus a single zero, a double zero, and an American Eagle. The Eagle slot, which was a symbol of American 온라인카지노 liberty, was a house slot that introduced the casino extra edge. Soon, the tradition vanished and since then the wheel features only numbered slots.

    ReplyDelete

Post a Comment

Popular posts from this blog

Novice to Coin Introduction

Using a JFileChooser to browse AWS S3

Taking Stuff Apart: Sony TC-800B Portable Reel-to-Reel Recorder