我有一个 View ,我想在其中显示加载动画。我看到一些应用程序显示圆形图像以显示加载,并且该操作将在后台发生,我想在这里实现同样的事情,IOS 中是否提供内置动画?
TIA
最佳答案
您可以使用内置的事件指示器。
UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
indicator.center = CGPointMake(alert.bounds.size.width / 2 , (alert.bounds.size.height) /2);
[indicator startAnimating];
只需将其作为 subview 添加到您的 View 中即可。
关于iphone - 如何在 View 中显示加载动画 - IOS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11947164/