UIActivityIndicator作为UITableView页脚显示设备中的不同行为(UIActivityIndicator as UITableView footer shows differe

编程入门 行业动态 更新时间:2024-10-24 06:25:03
UIActivityIndicator作为UITableView页脚显示设备中的不同行为(UIActivityIndicator as UITableView footer shows different behavior in devices)

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?

最满意答案

我自己找到了原因,添加UIActivityIndi​​cator作为页脚在某些设备中引起麻烦,所以如果你仍然需要显示一个页脚,最好使用像“Loading ...”这样的文本。为UITableView添加一个额外的单元格并添加UIActivityIndi​​cator到最后一个细胞。 在我的情况下,错误是在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

更多推荐

本文发布于:2023-08-07 18:54:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1465608.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:显示设备   UITableView   UIActivityIndicator   footer   devices

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!