By default, the simulated size of then ViewController is fixed. We define the size of the ViewController screen into the size inspector in XCode. Since ScrollView works when the content size doesn't fit into the entire screen of the iPhone Screen. We will have the ScrollView and the ContentView on the storyboard. This is the most important step in this setup otherwise, the scrollview doesn't scroll. Make the priority of the ContentView to the low, as shown in the below image. We also need to make the height and width of them equal. Give the constraint margin 0 to the contentView from ScrollView.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |