objective-c - 如何在 iOS 的通知中创建 ProgressBar?
问题描述
有什么方法可以在 ios 中实现一个进度条来显示它是在我提到的本地通知中上传或下载。
Notification Service Extension
和
Notification Content Extension
那么有什么方法可以在其中实现进度视图...我是 iOS 开发新手
解决方案
UIProgressView
UIProgressView *progressView = [[UIProgressView alloc] initWithProgressViewStyle:UIProgressViewStyleDefault];
[self.view addSubview:progressView];
[progressView setProgress:0.5 animated:YES];