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.
我想要最简单的方法来实现多个 UIView 之间的滑动右/左手势,如 AngryBirds 级别,如下面的屏幕截图所示
您最好的选择可能是不使用滑动手势,而是使用小于其UIScrollView的 a (以显示上一页/下一页)和and 。contentSize.widthframe.size.widthpagingEnabled = YESclipsToBounds = NO
UIScrollView
contentSize.width
frame.size.width
pagingEnabled = YES
clipsToBounds = NO