So I have a UIScrollView ,
UIScrollView
var myScrollView = UIScrollView(frame:theFrame)
and I would like to disable vertical scrolling. Does anyone know how to implement this using Swift?
Try it. This sets the content size to the height of the frame, so it disables vertical scrolling because it can display the entire size.
let scrollSize = CGSizeMake(theFrame.size.height, yourWidth) myScrollView.contentSize = scrollSize
Another way to do this is to set the height to 1.0
scrollView.contentSize = CGSizeMake(theFrame.size.height, 1.0)
scrDemo.contentSize = CGSize(width:(scrDemo.frame.size.width * CGFloat(imgList.count)), height: 1.0)
in quick 4.1
Source: https://habr.com/ru/post/974012/More articles:Can I add a “middle” line to a Highcharts chart? - javascriptSelenium click on coordinates without clicking where expected - c #Clicking on coordinates without an identification element - seleniumUsing wget to download an entire folder from github - githubMultiple Firebases - authenticationOne-to-Many BottleJPA, Hibernate: mapping OneToOne with foreign key only - javaHow are GroupBy objects by numerical values with a tolerance factor? - collectionsWhy does hibernate generate insert and update to display OneToMany - javaOSX launchctl programmatically as root - shellAll Articles