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