使用UIKit倾斜图像 [英] Tilt image with UIKit

查看:52
本文介绍了使用UIKit倾斜图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一个棋盘供dama游戏使用..我们可以倾斜整个棋盘,并同时显示跳棋从大到近还是从小到远..就像在所附的图片中看到的那样.

I want to one board for dama game.. can we tilt the whole board and also show the checkers big to near and small to far.. Like see in attached image..

怎么做那样的??

请帮助我..

推荐答案

您要对图像或视图进行透视变换.这里有一个SO答案,可能会帮助您入门:如何将透视变换应用于UIView?

You want to do a perspective transform on the image or view. Here's a SO answer that might help you get started: How do I apply a perspective transform to a UIView?

这篇关于使用UIKit倾斜图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆