摘要:
判断scrollView有没有滚动到视图的底部,用来判断下拉刷新的时间。等 - (void)scrollViewDidScroll:(UIScrollView *)scrollView1 { CGPoint offset = scrollView1.contentOffset; ... 阅读全文
摘要:
这方法挺实用的,直接调用就可以得到想要的size。//将一个UIImage缩放变换到指定Size-(UIImage*) OriginImage:(UIImage *)image scaleToSize:(CGSize)size{ UIGraphicsBeginImageContext(size);... 阅读全文
摘要:
两个时间段,判断之间的相差,做一些时间范围限制使用 NSDateFormatter * dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat:@"yyyyMMddHHmmss"]; NSDate... 阅读全文
摘要:
设置UITextField的placeholder颜色 UIColor *color = [UIColor blackColor]; textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"密码"... 阅读全文