标签:
@property(nonatomic) NSInteger numberOfLines;
行数
@property(nonatomic) NSTextAlignment textAlignment; 文本位置调节默认在左
UIImageView
属性:
contentMode
1.UIViewContentModeScaleToFill,
2.UIViewContentModeScaleAspectFit,
iv.frame.size = image.size;
CGRect tempFrame = iv.frame;
tempFrame.size = image.size;
iv.frame = tempFrame;
supporting files 和 Assets.xcassets
> 如果是放到supporting files中, 使用图片的时候需要加上图片的后缀
> 常用图片可以放在supporting files,加载完会释放掉
> 如果是放到Assets.xcassets中, 使用图片的时候不需要加上图片的后缀
> 如果是放到Assets.xcassets中, 那么系统会自动对图片进行copy操作
> 如果是放到Assets.xcassets中, 可以对图片进行一些额外的属性设置
> 如果是放到Assets.xcassets中, 可以提高软件的安全性, 它会将图片都加密压缩保存到Assets.car文件中,
> 不常用图片可以放在Assets.xcassets,加载后不释放占用内存
UIControl
标签:
原文地址:http://www.cnblogs.com/liujiaoxian/p/4694744.html