AM使用UIActivityIndicator视图作为UITableViewFooter ,在模拟器中工作正常,但在设备中显示不同的行为,认为这是由于操作系统更改而发生的。 有时它适合屏幕的宽度并且看起来更大,在其他情况下只是消失,任何解决方案?
AM using a UIActivityIndicator view as a UITableViewFooter, works fine in simulator, but shows different behavior in devices,think that occurs due to OS change. Sometimes it fits to the width of the screen and seems enlarged, in other cases simply disappears, Any solution?
最满意答案
我自己找到了原因,添加UIActivityIndicator作为页脚在某些设备中引起麻烦,所以如果你仍然需要显示一个页脚,最好使用像“Loading ...”这样的文本。为UITableView添加一个额外的单元格并添加UIActivityIndicator到最后一个细胞。 在我的情况下,错误是在3GS测试时,其他设备没有问题。
问候
Found the reason myself, adding UIActivityIndicator as footer causes trouble in certain devices, so its better to use text like "Loading..."if you still need to show a footer.Else add an extra cell to UITableView and add UIActivityIndicator to that last cell. In my case, the error was while testing in 3GS, no trouble in other devices.
Regards
更多推荐
发布评论