让UIScrollView固定只竖向滚动 | UIScrollView AutoLayout Vertical Only

For disabling the horizontal scroll, you can set the content size in the (void)scrollViewDidScroll method.

You’ll also want to set the directional lock so only 1 scroll direction is used at a time.https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIScrollView_Class/index.html#//apple_ref/occ/instp/UIScrollView/directionalLockEnabled

from:http://stackoverflow.com/questions/25981635/uiscrollview-autolayout-vertical-only

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注