天气状况的图标:WeatherFontIcon

jopen 10年前

WeatherFontIcon提供多个天气状况的图标,适用于天气类App,可以变换颜色,大小。图标的使用跟UILabel一样简单方便。

Usage

To use WeatherFontIcon, download WeatherFont inlcude FontHeader.h and Pe-icon-7-weather.ttf inside your project and follow the below steps:

  1. Open Info.plist file add row and set key value as "Fonts provided by application", by default array object is created
  2. Set Value for Item 0 as "Pe-icon-7-weather.ttf"
  3. Use can you font icon as normal UILabel

An example of making a label with weather font:

UILabel *fontLabel = [[UILabel alloc] initWithFrame:self.view.bounds];  [fontLabel setFont:[UIFont fontWithName:@"Pe-icon-7-weather.ttf" size:90]];  [fontLabel setText:[NSString stringWithFormat:@"%@ Weather Icon Random text",kWind]];  [fontLabel setTextColor:[UIColor whiteColor]];  [self.view addSubview:fontLabel];

天气状况的图标:WeatherFontIcon

项目主页:http://www.open-open.com/lib/view/home/1414741570044