gpt4 book ai didi

iphone - xcode : how should we display large number of Label & buttons in Tabular form?

转载 作者:行者123 更新时间:2023-12-01 17:57:09 24 4
gpt4 key购买 nike

实际上,我在 View 中显示大约 10-15 行标签和按钮控件时遇到问题。然后我使用 UIScroll View 来实现这一点,但这破坏了设计的外观。

enter image description here

如您所见,生成的输出与开发时 Xcode 中的外观不同。

请指导我应该怎么做才能呈现正确的设计?

谢谢
阿什什

最佳答案

  • 你应该使用 UITableView。
  • 创建自定义 UITableViewCell。
  • 您的每一行将包含一个 UILabel 和 UIButton。
  • 您可以check .

  • 见附图:

    enter image description here

    关于iphone - xcode : how should we display large number of Label & buttons in Tabular form?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15360013/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com