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

Post a Comment

Popular posts from this blog

Decommissioning the cloud: A self-hosted future

Using a JFileChooser to browse AWS S3

Taking Stuff Apart: Realistic Modulette-8