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.
我正在制作一个需要实现 UIPageControl 的 iPhone 应用程序。
我参考了许多教程,但它们都添加了静态数据以供查看。我想在刷入新视图时向视图动态添加按钮。
应该做什么?
您可以使用 addSubview/removeFromSuperview 方法向 UIView 动态添加新项目。