08 2016 档案

生成iPhone的唯一标实UUID
摘要:01 02 03 04 05 06 07 08 09 10 11 12 13 NSString * strUUID = (NSString *)[SPIMyUUID load:@"KEY_USERNAME_PASSWORD"]; //首次执行该方法时,uuid为空 if ([strUUID isEq 阅读全文

posted @ 2016-08-31 18:26 yucaijiang 阅读(648) 评论(0) 推荐(0)

iOS开发 给Label加下划线、中划线
摘要:添加中划线: 0 1 02 03 04 05 06 07 08 09 10 11 UILabel * strikeLabel = [[UILabel alloc] initWithFrame:(CGRectMake(10, 10, 50, 30))]; NSString *textStr = [NS 阅读全文

posted @ 2016-08-29 17:33 yucaijiang 阅读(2087) 评论(0) 推荐(0)

更改字符串颜色(长度不确定,有服务器返回)
摘要:cell.Content.text = [NSString stringWithFormat:@"回复 %@:%@",item.nickname,item.content]; //将前面一部分字更改为灰色 NSString *str=cell.Content.text; NSMutableAttri 阅读全文

posted @ 2016-08-16 18:06 yucaijiang 阅读(228) 评论(0) 推荐(0)

iOS 获取键盘高度
摘要:- (void)viewDidLoad { [super viewDidLoad]; //增加监听,当键盘出现或改变时收出消息 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWill 阅读全文

posted @ 2016-08-01 16:02 yucaijiang 阅读(836) 评论(0) 推荐(0)

导航