Skip to content
项目

关于

在 iOS 原生 SDK 项目中轻松使用 ionicons。

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

ionicons-iOS

Easily use ionicons in your native SDK iOS projects

Build Status

Currently using: Ionicons v2.0.1

About

The ionicons icon set includes a lot of iOS system icons as well as plenty of handy additions. The great thing about ionicons is it makes the system icons a lot handier and more customizable, while adding more icon options. Also, with ionicons-iOS you can use iOS 7 system icons in your native SDK iOS 5+ projects, so your designs will have a consistent appearance across all OS versions.

Usage:

For available icons, look at ionicons-codes.h or browse them at the ionicons website.

The available icon names will autocomplete if you've included the IonIcons.h header when you type ion_...

Get the font:

UIFont *ionIconsFont = [IonIcons fontWithSize:30.0f];

Make a UILabel with an ionicons icon:

UILabel *label = [IonIcons labelWithIcon:ion_ionic size:20.0f color:[UIColor blackColor]];

Render an ionicons icon in a UIImage:

    UIImage *icon = [IonIcons imageWithIcon:ion_ionic
                                  iconColor:[UIColor redColor] 
                                   iconSize:60.0f 
                                  imageSize:CGSizeMake(90.0f, 90.0f)];

Installation Step 1:

CocoaPods is great:

  1. add pod 'ionicons' to your Podfile
  2. pod install

Non-CocoaPods is easy too:

  1. Drag the folder 'ionicons' with the source files into your project

License

ionicons is released under the MIT license and was built by the people at http://ionicframework.com. Learn more at http://ionicons.com The stuff specific to ionicons-iOS is also released under the MIT license.

探索相关项目

加载中…