- 博客(4)
- 收藏
- 关注
原创 NSCoder 进行数据的归档解档
首先我们创建一个WKUser类,来保存用户的基本信息。#import #import @interface WKUser : NSObject@property (nonatomic,strong) NSString *name;@property (nonatomic,strong) NSString *age;@property (nonatomic,strong) UI
2016-09-26 14:52:23 423
原创 NSCharacterSet 对于字符串的处理
/* 1 controlCharacterSet //控制符 2 whitespaceCharacterSet //空格符号 3 whitespaceAndNewlineCharacterSet //空格换行 4 decimalDigitCharacterSet //小数 5
2016-09-12 18:46:40 878
原创 NSCalendar
NSCalendar *calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian]; //获取当前时间下的基本信息 NSDateComponents *dateComponents = [calendar components:NSCalendarUnit
2016-09-12 17:16:44 1363
原创 NSMutableAttributedString && NSAttributedString
UILabel *label = [[UILabel alloc] init]; label.frame = CGRectMake(30, 60 , [UIScreen mainScreen].bounds.size.width - 60, 340); label.numberOfLines = 0; [self.view addSubview:lab
2016-09-08 16:15:41 458
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人