- (UIImage*)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight:(NSInteger)topCapH
2016-01-24 11:33
531 查看
- (UIImage*)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth
topCapHeight:(NSInteger)topCapHeight;
这个函数是UIImage的一个实例函数,它的功能是创建一个内容可拉伸,而边角不拉伸的图片,需要两个参数,第一个是左边不拉伸区域的宽度,第二个参数是上面不拉伸的高度。我自己的理解(认识)是在左边、上面找一个基点,对基点范围以外的内容拉伸。
topCapHeight:(NSInteger)topCapHeight;
这个函数是UIImage的一个实例函数,它的功能是创建一个内容可拉伸,而边角不拉伸的图片,需要两个参数,第一个是左边不拉伸区域的宽度,第二个参数是上面不拉伸的高度。我自己的理解(认识)是在左边、上面找一个基点,对基点范围以外的内容拉伸。
相关文章推荐
- NetSuite 需要注意的地方
- Voluntarily Relinquishing the Processor-----《Pro_Java_8_Programming_(3rd_edition)》
- You have set Tablespace Full Metrics Threshold values for the USERS tablespace as follows: Warning (
- iOS之UIScrollview添加约束图文详解
- bzoj 1670 Building the Moat
- 阻塞队列BlockingQueue的核心方法
- APUE_内存管理
- Leetcode 128. Longest Consecutive Sequence
- Influencer Finder
- the requested resource is not available
- Unique Path II
- Xib和购物车UI界面的完善
- NSKeyValueSlowMutableCollectionGetter
- 监听UITextField改变事件(三种方法)
- 禁止在Handler、Ui线程中使用第三方控件ImageLoader.loadImageSync函数,缓存问题,很痛苦
- ios 9.0 后用UIAlertController代替了UIAlertView弹框 和 UIActionSheet下弹框
- stl提供了三个最基本的容器:vector,list,deque
- Duilib 窗口流程
- The request sent by the client was syntactically incorrect.
- Duilib技巧:背景图片平铺