Code Monkey home page Code Monkey logo

ionicons-ios's Introduction

ionicons-iOS

Easily use ionicons in your native SDK iOS projects

Currently using ionicons 1.4.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.

Get the font:

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

Make a UILabel with an ionicons icon:

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

Render an ionicons icon in a UIImage:

    UIImage *icon = [IonIcons imageWithIcon:icon_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
  3. open the xcworkspace
  4. Modify your project's Info.plist file as described below

Non-CocoaPods is easy too:

  1. Drag the folder 'ionicons' with the source files into your project
  2. Modify your project's Info.plist file as described below

Installation Step 2:

Modify your project's Info.plist file:

  1. Open your project's Info.plist file by clicking on the project in the Navigator on the left, then choosing 'Info'.
  2. Under 'Custom iOS Target Properties', click the last Key in the list, then click on the '+' icon.
  3. For the new key, type 'Fonts provided by application'.
  4. Twirl down the arrow icon, double-tap the right-most box to enter the string value, and type 'ionicons.ttf'. Info.plist modification

Shameles Plug:

I built this for inclusion in my app design templates available at TapTemplate

License

ionicons is released under the MIT license.
The stuff specific to ionicons-iOS is also released under the MIT license

ionicons-ios's People

Contributors

sweetmandm avatar alexgaribay avatar cotsog avatar

Watchers

James Cloos avatar Bingo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.