Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要像“电话”应用程序中的“最近”一样创建一个视图。顶部有两个相连的按钮,当单击其中一个时,下面的视图会发生变化。我尝试使用 UIToolbar 但按钮之间有空格。有谁知道如何做到这一点?提前致谢。
-乔伊
我认为你想要一个 UISegmentedControl。它允许连接按钮,例如电话应用程序中的按钮。如果您想完全模仿电话应用程序,请将其添加到 UIToolbar。
该文档有更多信息。