我有一个包含另一个子视图的 UIView。子视图的框架超出了超级视图的范围。但是当我运行应用程序时,整个子视图都是可见的。例子:
++++++++++++++++++++++++++++
+ +
+ Super view +
+ +
+ +
+ --------------------------
+ - Subview + -
+ - + -
+ --------------------------
+ +
+ +
++++++++++++++++++++++++++++
应该:
++++++++++++++++++++++++++++
+ +
+ Super view +
+ +
+ +
+ ---------------------+
+ - Subview +
+ - +
+ ---------------------+
+ +
+ +
++++++++++++++++++++++++++++
任何的想法?