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.
我使用一个标签栏控制器,当每个标签被选中时,它会导致 5 个视图控制器。我需要添加所有视图控制器通用的按钮、图像和标签。有没有可能的方法将它们添加到 tabbarconrtoller 中,这样我就不必单独将它们添加到每个视图控制器中。
您可以为按钮、图像和标签创建单独的视图,然后将其作为子视图添加到所有视图控制器中。