Swift How is a setting view implemented

人走茶凉 提交于 2019-12-11 16:12:34

问题


I was looking through some setting page in apps and saw the setting page in trip advisor

And I wondered how is this implemented is it a stackview of buttons or table view cells? (front end)

Please note this is not a problem just a question on how is it done or idea behind just to expand my knowledge


回答1:


It’s an tableview cell with more than one section. And tableview style is group.




回答2:


There are two styles of table view. One is plain and the other is grouped. A plain tableView is used while huge data is displayed, i.e. show your contact list. A grouped tableView is used where data is in a group. Here the tableView is grouped. Each group is a section.

The UITableViewCell has many styles, custom, left detail, right details, subtitle, etc. Right detail is for some limited string data, where left is title and the answer is on the right of the screen. For example, the Language is a title for a question and the answer is shown on the right, English is the answer. The Autoplay Videos segmented control cell in the tableView is custom.

The left arrow is UITableViewCellAccessoryDisclosureIndicator showing that if you tap on the cell or the accessory then you will find more data.



来源:https://stackoverflow.com/questions/58036621/swift-how-is-a-setting-view-implemented

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!