摘要: fabs 是计算绝对值 %lf 是代表double类型.下面是个小例子,浮点数比较//浮点数比较#include #include int main (void){ const double answer = 3.1415926; double response; printf("... 阅读全文
posted @ 2015-12-21 21:37 TheYouth 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 定义 #import @interface UIImage (ChangeImageColor) /** * 改变图片的颜色 * * @param tintColor * * @return */ - (UIImage *) imageWithTintColor:(UIColor *)tintColor; @end 实现 - (UIImage *)imageWith... 阅读全文
posted @ 2015-12-21 21:09 TheYouth 阅读(724) 评论(0) 推荐(0) 编辑