IOS--时间 NSDate,NSTimeInterval的一些转换
摘要://1.时间格式 NSDateFormatter *_dateFormatter = [[NSDateFormatter alloc] init]; [_dateFormatter setDateFormat:@"YYYY年MM月dd天hh小时mm分ss秒"]; //2.获取系统时间 NSString *date = [_dateFormatter stringFromDate:[...
阅读全文
posted @
2017-09-27 16:52
麦芽呀~
阅读(4371)
推荐(0) 编辑
IOS--通过宽度算高度
摘要://通过宽度算高度 - (CGFloat)sugguestHeightForWidth:(CGFloat)width { NSLayoutConstraint *tempWidthConstraint = [NSLayoutConstraint constraintWithItem:self attribute:N...
阅读全文
posted @
2017-09-26 14:20
麦芽呀~
阅读(463)
推荐(0) 编辑