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.
好的,我的 iOS 应用程序出现意外的运行时问题/错误。我放置了一个滚动视图和步进器,它根据从 Web 服务解析的项目递增。现在,当用户选择 Stepper 时会填充滚动视图,现在工作正常。
我的问题是如何避免应用程序重叠,如下面的屏幕截图所示。
我的解决方案是每次选择步进器时简单地刷新表数据。
这是消除所有重叠问题的唯一代码。
[self.tableView.subviews makeObjectsPerformSelector:@selector(removeFromSuperView)];