所有的iOS如果要禁止UIScrollView上下滑动,设置: contentsize.height =0即可 同理限制左右滑动,设置 contentsize.width = 0 以上,亲测,Mark一下!