创建一个TheNeonLightsView类
TheNeonLightsView.h
定义4个实例变量
@interface TheNeonLightsView : UIView
{
NSTimer *time;
UIView *aView;
UIView *bView;
UIButton *button;
}
@end
@implementation TheNeonLightsView- (id)initWithFrame:(CGRect)frame{ self = [super initWithFrame:frame]; if (self) { //基层容器视图 self.backgroundColor = [UIColor blackColor]TheNeonLightsView.m中写实现
ios霓虹灯效果(没基础也可以做出好看的霓虹灯)
最新推荐文章于 2017-09-10 22:41:48 发布