摘要: 实现原理:当该label不足以达到要求的高度时,居上对齐时在页末补“\n空格”,居下对齐时在页首补“空格\n”UILabel+VerticalAlign.h@interface UILabel(VerticalAlign)-(void)alignTop;-(void)alignBottom;@end... 阅读全文
posted @ 2014-04-19 15:10 MittyoO 阅读(354) 评论(0) 推荐(0) 编辑
摘要: 1.圆角和边框viewT.layer.cornerRadius = 10;//设置那个圆角的有多圆viewT.layer.borderWidth = 10;//设置边框的宽度,当然可以不要viewT.layer.borderColor = [[UIColor redColor] CGColor];/... 阅读全文
posted @ 2014-04-19 14:43 MittyoO 阅读(992) 评论(0) 推荐(0) 编辑
摘要: a. arc兼容:对不兼容的.m文件在target->build phases->compile sources中设置为-fno-objc-arcb.拷贝文件后引起的找不到文件:将出错文件先remove reference再添加进项目。0、Undefined symbols for architec... 阅读全文
posted @ 2014-04-16 17:41 MittyoO 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 设置title样式UINavgationBar提供了titleTextAttributes 属性来简单的设置其title样式,titleTextAttributes是一个NSDictionary类型,包含的固定的属性名称,可以用来设置title的样式,指定的属性keys声明于NSString UIK... 阅读全文
posted @ 2014-04-16 17:34 MittyoO 阅读(666) 评论(0) 推荐(0) 编辑
摘要: app更新版本上传流程:1.itune connect建立新版本->使app信息变成waitting for upload2.developer.com--member center ->certification->distribution新建一个上传证书-->点击安装3.xcode projec... 阅读全文
posted @ 2014-04-16 17:25 MittyoO 阅读(188) 评论(0) 推荐(0) 编辑
摘要: BUG描述:Direct access to objective-c's isa is deprecated in favor of object_setClass() and object_getClass()处理方法:在target的Build Settings里面,将Build ActiveA... 阅读全文
posted @ 2014-04-16 17:20 MittyoO 阅读(397) 评论(0) 推荐(0) 编辑
摘要: 问题描述:选取相册图片或使用摄像头拍摄图片后,得到的图像旋转90度解决方法:在获取图片,使用之前,调整图像的方向属性结果:正常运行相关函数:CGAffineTransformTranslate(transform, x, y):改变位置,CGAffineTransformMakeTranslatio... 阅读全文
posted @ 2014-04-16 17:19 MittyoO 阅读(509) 评论(0) 推荐(0) 编辑