Enable scrolling to View to allow multiple element
2016-08-23
0 0 0
no vote
Other
Earn points
Translation maninwest@Codeforge By amogh Natu@CodeProject Here we will introduce how to enable scrolling in a specific view of IOS, that is, many elements may be added to the view, but they cannot be placed in one screen, so scrolling needs to be added. By default, the view has a fixed height (screen height). However, you often need to add a lot of UI elements to the view. &In this way, we need to follow the following five steps: on the view that needs to be scrolled, remove the auto layout from its view controller. Set the size property of the view to freeform. Increase the height of the view to the desired size. Add a scrolling view to the view, enable scrolling, and set the size of the Scrollview. 1. Remove the auto layout on the controller of the scrolled view that needs to be scrolled. In the storyboard, click the view controller to select it, and then deselect the check box on the right. 2. Set the "size" attribute of the view to "freeform". In the attributes checker under the simulated metrics section, select the attributes from & nbsp; Increase the height of the view to the desired height. It should be noted that the size of the view is disabled before the size is changed to freeform. This is shown below. After that, dimensions are enabled. Increase the value of the height element as required and click enter. 4. Add a scrolling view to the view. Drag and drop the scrolling view from the object library to this view. By default, it takes up the entire space of the view. You can adjust the size as needed. 5. & nbsp; to enable scrolling of scrolling view and set size, you need to add an outlet for scrolling view and synthesize it in implementation. This is to give ourselves a finger
objective-c
ios
查看
多个
视图
元素
滚动
启用
Related Source Codes
ABCD system for security ABCD available ABCD avail
0
0
no vote
2022zui complete original e-commerce multi termina
0
0
no vote
AT24C16 Soft IIC Driver
0
0
no vote
BeautyGAN
0
0
no vote
Camera scanning Library
0
1
no vote
No comment