摘要: 代码用到了Quartz Framework 和 Core Graphics Framework. 在workspace的framework目录里添加这两个framework图片截取UIGraphicsBeginImageContext(view.bounds.size);[view.layer re... 阅读全文
posted @ 2014-04-22 09:34 MittyoO 阅读(1071) 评论(0) 推荐(0) 编辑
摘要: .h文件#import @interface UILabel(VerticalAlign)-(void)alignTop;-(void)alignBottom;@end.m文件#import "UILabel+VerticalAlign.h"@implementation UILabel(Verti... 阅读全文
posted @ 2014-04-22 09:31 MittyoO 阅读(500) 评论(0) 推荐(0) 编辑
摘要: 文字属性/* Predefined character attributes for text. If the key is not in the dictionary, then use the default values as described below. */UIKIT_EXTERN N... 阅读全文
posted @ 2014-04-22 09:21 MittyoO 阅读(571) 评论(0) 推荐(0) 编辑
摘要: //----时间字符串转时间戳---format 示例 @"yyyy-MM-dd HH:mm:ss"#define TIMESTR_TO_C(dateStr,format)\NSDateFormatter* formatter = [[NSDateFormatter alloc] init];\[f... 阅读全文
posted @ 2014-04-22 09:15 MittyoO 阅读(328) 评论(0) 推荐(0) 编辑
摘要: .H文件#import CGPoint CGRectGetCenter(CGRect rect);CGRect CGRectMoveToCenter(CGRect rect, CGPoint center); @interface UIView (ViewFrameGeometry)@prope... 阅读全文
posted @ 2014-04-22 09:06 MittyoO 阅读(438) 评论(0) 推荐(0) 编辑
摘要: SVProgressHUD 是一个第三方的控件,是一个弹出提示层,用来提示 网络加载 或 提示对错,看下面图,你就明白了:那么,SVProgressHUD都有什么特点呢:1. 提示当前的状态,如:网络传输、提交中、操作成功或失败等等.2. 可是设置提示的 pop layer 是否为 model,就是... 阅读全文
posted @ 2014-04-22 09:03 MittyoO 阅读(2314) 评论(0) 推荐(0) 编辑