Skip to content

Latest commit

 

History

History
executable file
·
38 lines (27 loc) · 971 Bytes

File metadata and controls

executable file
·
38 lines (27 loc) · 971 Bytes

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];