
#import <UIKit/UIKit.h>

@interface NSString (Extension)
- (CGSize)sizeWithFont:(UIFont *)font maxSize:(CGSize)maxSize;
- (CGFloat)sizeWithFont:(UIFont *)font maxWidth:(CGFloat)maxWidth;
//请求的时候给特殊字符转码
- (NSString *)URLEncodedString;
//给链接添加source=app
+ (NSString *)getAddSourceAppUrl:(NSString *)url;
//判断是否图片链接带http。返回正确的链接
+(NSString *)isHttpImageUrl:(NSString *)imageUrl;

//拆成数组再获取指定字符串
- (NSString *)subStringFromStartString:(NSString *)startString withSeparatedByString:(NSString *)str;
//截取字符串
- (NSString *)subStringFrom:(NSString *)startString to:(NSString *)endString;
@end
