123456789101112131415161718192021222324252627282930313233343536373839 |
- //
- // NSString+CCFunction.h
- // YouHuiProject
- //
- // Created by 小花 on 2018/1/25.
- // Copyright © 2018年 kuxuan. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #import <UIKit/UIKit.h>
- @interface NSString (CCFunction)
- - (CGSize)stringSizeWithFont:(UIFont *)font;
- - (NSUInteger)getBytesLength;
- - (NSString *)stringByDeletingPictureResolution;
- + (BOOL)checkRoomNumber:(NSString *)roomNumber;
- + (BOOL)checkUserName:(NSString*) username;
- + (BOOL)checkPassword:(NSString*) password;
- + (BOOL)checkNickName : (NSString*) nickName;
- + (BOOL)checkPullUrl: (NSString *) pullUrl;
- /**
- * 计算文本占用的宽高
- *
- * @param font 显示的字体
- * @param maxSize 最大的显示范围
- *
- * @return 占用的宽高
- */
- - (CGSize)sizeWithFont:(UIFont *)font maxSize:(CGSize)maxSize;
- @end
|