• Stars
    star
    268
  • Rank 153,144 (Top 4 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created over 6 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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.