Glyphicons with Objective C?

462 views Asked by At

How can I use the glyphicons for iOS ? I cant't find any tutorials. Can anyone explain the steps to be taken and the code to be used.

1

There are 1 answers

3
Himanshu gupta On BEST ANSWER

You cannot use glyphicons here like we used in the web.. In iOS, you need to save those as images - png, jpg etc. and then use

First you need to download icons, and then add them to your Images.xcassets as shown in the image below:

enter image description here

Then drag an UIImageView in the ViewControler:

enter image description here

Select the UIImageView and then click on the Show Attributes Inspector icon at the top right and type the name of icon in the Image textfield under ImageView, in my case the name is icon1, and that's it your icon will be added in the imageView -

enter image description here