Skip to content

poormusic2001/WHWeatherAnimation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WHWeatherAnimation

Animation of weather written in Objective-C, including sun, cloud, rain, thunderstorm, snow animation.

Features

  • sun
  • cloud
  • rain
  • thunderstorm
  • snow
  • Animation transition

Usage

1. import header

#import "WHWeatherView.h"

2. initialization

WHWeatherView *weatherView = [[WHWeatherView alloc] init];
self.weatherView.frame = self.view.bounds;
[self.view addSubview:self.weatherView];

3. show animation

typedef NS_ENUM(NSInteger, WHWeatherType){
    WHWeatherTypeSun = 0,
    WHWeatherTypeClound = 1,
    WHWeatherTypeRain = 2,
    WHWeatherTypeRainLighting = 3,
    WHWeatherTypeSnow = 4,
    WHWeatherTypeOther = 5
};
- (void)showWeatherAnimationWithType:(WHWeatherType)weatherType;

More

  • WHWeatherAnimation has been used in this app SiShi(思诗 - 思念诗歌,每日一诗). You can read a beautiful chinese poetry while get the daily weather forecast. Download and enjoy it.

  • Here is a easy way to get the weather data. 心知天气 which offered free and comprehensive APIs.

License

WHWeatherAnimation is released under the MIT license. See LICENSE for details.

About

WeatherAnimation(sun, cloud, rain, thunderstorm, snow)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 98.8%
  • C++ 1.2%