I have a UIView that contains my UIScrollView (with a bunch of elements inside) in IB. ScrollView is connected correctly, but the content inside does not scroll. Do not know why?
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib. - (void)viewDidLoad { scrollView.contentSize = CGSizeMake(320,600); scrollView.showsHorizontalScrollIndicator = NO; scrollView.showsVerticalScrollIndicator = NO; scrollView.scrollsToTop = NO; self.title = titleDescription; self.descriptionTextView.text = bodyDescription; self.addressTextView.text = address; self.phoneTextView.text = phone; self.websiteTextView.text = website; [super viewDidLoad]; }
You need to set the scroll property contentSizein the code (this cannot be done in Interface Builder).
contentSize
Do not place a UIView inside a UIScrollView.
Make the scroll view as tall as you like, and the iPhone will take care of your “scroll needs.”
, , UIView UIScrollView, , , , , ...
Source: https://habr.com/ru/post/1780917/More articles:How can I perform operations with large numbers that cannot be stored in a single variable - javaThe jQuery function called in the .bind handler works on the finished document - jqueryHow to specify the file: // path to svn on Windows (redmine)? - windowsMooseX:: Типы принуждений и $self - perl[IOS SDK] - affects a specific object? - xcodehttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1780918/jsf-locale-browser-defined-language-seems-to-be-ignored&usg=ALkJrhgVwOzVZuzTWSi0sKatD53PhKUChghttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1780919/how-to-make-a-c-project-to-copy-its-dependencies-to-the-output-folder&usg=ALkJrhgMgGJzkxuZd1qbNQ2prFjFhBAKpgWhat is the default PHP configuration? - phpjQuery: how to map all elements to a specific class that follow an element? - jqueryC # how to handle return type exception of GUID? - c #All Articles