如何创建自定义平铺图像?
我有一个小尺寸的图像,我想获得一个具有不同数量的该小尺寸图像的图像。我首先为每个图像创建一个 uiimageview
,但进展并不顺利。
那么有没有一个简单的解决方案呢?
I have a small-sized image and I want to obtain an image which has various numbers of this small-sized image. I've started by creating an uiimageview
for each image but it didn't go well.
So is there an easy solution for this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
假设您的图像名为
pattern.png
并且您想要将平铺作为背景添加到 UIView:Assume your image is named
pattern.png
and you want to add the tiled as background to a UIView: