摘要: 在设置好字体以后,在占位文字中设置leading这个字体属性,用leading来乘以一个比例(CGFloat)来调节位置。 阅读全文
posted @ 2014-02-16 22:54 —__MOMO__— 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 其中drawRect方法中的参数rect就是用来设置位置的, 阅读全文
posted @ 2014-02-16 22:52 —__MOMO__— 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 设置画笔颜色可以直接 [[UIColor grayColor] set];就可以设置颜色. 阅读全文
posted @ 2014-02-16 22:50 —__MOMO__— 阅读(802) 评论(0) 推荐(0) 编辑
摘要: 使用setNeedDisplay来调用。 阅读全文
posted @ 2014-02-16 22:47 —__MOMO__— 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 使用hasSuffix属性即可例如[photo.thumbnail_pic.lowercaseString hasSuffix:@"gif"] 阅读全文
posted @ 2014-02-16 22:31 —__MOMO__— 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 转换大小写:lowercaseString(小写) uppercaseString(大写) 阅读全文
posted @ 2014-02-16 22:28 —__MOMO__— 阅读(159) 评论(0) 推荐(0) 编辑
摘要: UIImageView *image = [[UIImageView alloc] init]; image.clipsToBounds = YES; 阅读全文
posted @ 2014-02-16 22:27 —__MOMO__— 阅读(802) 评论(0) 推荐(0) 编辑