mirror of
https://github.com/samsonjs/samhuri.net-ios.git
synced 2026-04-24 14:37:42 +00:00
36 lines
1.3 KiB
Objective-C
36 lines
1.3 KiB
Objective-C
//
|
|
// UIImage+UIImage_FontAwesome.h
|
|
// FontAwesome-iOS Demo
|
|
//
|
|
// Created by Pedro Piñera Buendía on 22/08/13.
|
|
// Copyright (c) 2013 Alex Usbergo. All rights reserved.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
@interface UIImage (FontAwesome)
|
|
/**
|
|
* This method generates an UIImage with a given FontAwesomeIcon and format parameters
|
|
*
|
|
* @param identifier NSString that identifies the icon
|
|
* @param bgColor UIColor for background image Color
|
|
* @param iconColor UIColor for icon color
|
|
* @param scale Scale factor between the image size and the icon size
|
|
* @param size Size of the image to be generated
|
|
*
|
|
* @return Image to be used wherever you want
|
|
*/
|
|
+(UIImage*)imageWithIcon:(NSString*)identifier backgroundColor:(UIColor*)bgColor iconColor:(UIColor*)iconColor andSize:(CGSize)size;
|
|
/**
|
|
* This method generates an UIImage with a given FontAwesomeIcon and format parameters
|
|
*
|
|
* @param identifier NSString that identifies the icon
|
|
* @param bgColor UIColor for background image Color
|
|
* @param iconColor UIColor for icon color
|
|
* @param scale Scale factor between the image size and the icon size
|
|
* @param fontSize Font size used to be generate the image
|
|
*
|
|
* @return Image to be used wherever you want
|
|
*/
|
|
+(UIImage*)imageWithIcon:(NSString*)identifier backgroundColor:(UIColor*)bgColor iconColor:(UIColor*)iconColor fontSize:(int)fontSize;
|
|
@end
|