-
Notifications
You must be signed in to change notification settings - Fork 1
/
NSAttributedString+StringWithImage.h
79 lines (54 loc) · 2.32 KB
/
NSAttributedString+StringWithImage.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
//
// NSAttributedString+StringWithImage.h
// Voca
//
// Created by Pradeep Narendra on 10/1/15.
// Copyright © 2015 Zaark. All rights reserved.
//
/*!
@discussion NSAttributedString category class to get image along with text and vice versa
## Version information
__Version__: 1.0
__Found__: 10/01/2015
__Last update__: 10/01/2015
__Developer__: Pradeep, Tarento Technologies Pvt Ltd.
*/
#import <Foundation/Foundation.h>
@interface NSAttributedString (StringWithImage)
/*!
@abstract Get Attributed text first and image appended to string
@discussion Method explains about NSString prefixed to UIImage.
@param attributedText Text to be diplayed along with image
@param imageName UIImage to be diplayed along with text
@return NSMutableAttributedString which needs to be displayed on View elements
@since 1.0
*/
+ (NSMutableAttributedString *)getAttributedName:(NSString *)attributedText withFlag:(NSString *)imageName;
/*!
@abstract Get UIImage first and String appended to UIImage
@discussion Method explains about image prefixed to NSString.
@param attributedText Text to be diplayed along with image
@param imageName UIImage to be diplayed along with text
@return NSMutableAttributedString which needs to be displayed on View elements
@since 1.0
*/
+ (NSMutableAttributedString *)getAttributedTextWithImageName:(NSString *)imageName withAttributedName:(NSString *)attributedText;
/*!
@abstract Get Attributed text first and image appended to string
@discussion Method explains about NSString prefixed to UIImage.
@param attributedText Text to be diplayed along with image
@param imageObject UIImage to be diplayed along with text
@return NSMutableAttributedString which needs to be displayed on View elements
@since 1.0
*/
+ (NSMutableAttributedString *)getAttributedName:(NSString *)attributedText withImage:(UIImage *)imageObject;
/*!
@abstract Get UIImage first and String appended to UIImage
@discussion Method explains about image prefixed to NSString.
@param attributedText Text to be diplayed along with image
@param imageObject UIImage to be diplayed along with text
@return NSMutableAttributedString which needs to be displayed on View elements
@since 1.0
*/
+ (NSMutableAttributedString *)getAttributedTextWithImage:(UIImage *)imageObject withName:(NSString *)attributedText;
@end