Skip to content

bennyguitar/StarField

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StarField

ScreenShot

What is this???

A UIView subclass with moving stars. Looks sweet and super easy to implement.

Installation

Drag the included StarField.m, StarField.h files into your project. Import StarField.h into your ViewController. Drag a UIView out in InterfaceBuilder, and set its class to StarField in the Identity Inspector. You're now ready to blast off.

Using StarField

Use the -(void)addStars:(int)num function to prepopulate your StarField. I've found that 180 to 220 looks good on iPhone.

Start the StarField moving with the startStarField method. Stop it with the similarly named stopStarField

Reap What I Sow!

This project is distributed under the standard MIT License. Please use this and twist it in whatever fashion you wish - and recommend any cool changes to help the code.

About

A UIView subclass with moving stars. Looks sweet.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published