A UIView subclass with moving stars. Looks sweet and super easy to implement.
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.
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
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.