Skip to content

Latest commit

 

History

History
72 lines (50 loc) · 1.87 KB

README.md

File metadata and controls

72 lines (50 loc) · 1.87 KB

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.