Skip to content

ClassWizard/ParticlesDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ParticlesDemo


icon ##Overview A Demo for CAEmitterLayer and CAEmitterCell

一个关于CAEmitterLayer和CAEmitterCell的Demo

Display Type Visual Examples


Demo

Demo

##Usage

#import "LWWeatherBackgroundView.h"

//1.init the LWWeatherBackgroundView

	self.weatherBackgroundView = [[LWWeatherBackgroundView alloc] initWithFrame:self.view.bounds];
    //Or you can set the frame later
//    self.weatherBackgroundView = [[LWWeatherBackgroundView alloc] init];
//    self.weatherBackgroundView.frame = CGRectMake(0, 20, self.view.bounds.size.width, 500);
    
//2.set/change the weatherModel

    [self.weatherBackgroundView setWeatherCellModel:WeatherCellModeRain];
    [self.view addSubview:self.weatherBackgroundView];
    
//3.send the LWWeatherBackgroundView to back 

    [self.view sendSubviewToBack:self.weatherBackgroundView];

About

A demo for CAEmitterLayer and CAEmitterCell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published