天氣狀況的圖標: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:
- Open Info.plist file add row and set key value as "Fonts provided by application", by default array object is created
- Set Value for Item 0 as "Pe-icon-7-weather.ttf"
- 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];
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!