12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- /**可用于字符串加密。
- xml解析。
- */
- #import <Foundation/Foundation.h>
- #import <CommonCrypto/CommonDigest.h>
- @interface NSString (ex)
- /**@"<ns:return>" @"</ns:return>"之间的结果
- */
- -(NSString* )getXlmRet;
- -(NSString*)getCode;
- /**返回一个json字典或数组
- */
- -(id)jsonObject;
- - (NSString *)md5Encrypt;
- /**把一个数字的字符串,变成小时分钟。
- 最少0分钟
- */
- -(NSString*)hourAndmm;
- /**固定宽度,和字体大小。返回label高度
- */
- -(CGFloat)heightForWid:(CGFloat)wid Font:(CGFloat)fontSize;
- -(CGSize)sizeForFont:(CGFloat)fontSize;
- -(NSString*)base64;
- @end
|