Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 UIImageView 编写 iPhone 应用程序。 我希望用户可以旋转、缩放、移动图像视图,但图像视图不能超出父视图的范围。 UIView 有这样做的属性吗? 我考虑 clipsToBounds 属性,但它仅用于显示/隐藏部分图像视图。我想限制它的 roataion、缩放、在父视图的范围内移动。