天氣狀況的圖標:WeatherFontIcon

jopen 10年前發布 | 16K 次閱讀 iOS開發 移動開發 WeatherFontIcon

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.baiduhome.net/lib/view/home/1414741570044

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!