我正在尝试使用一种模式来初始化 MBProgress HUD,但仅使用标签而不是环形模式弹出进度。
//Addition of new HUD progress whilst running the process field entries method
HUD = [[MBProgressHUD alloc] initWithView:self.view];
[self.view addSubview:HUD];
// Set determinate mode
HUD.mode = MBProgressHUDModeAnnularDeterminate;
HUD.delegate = self;
HUD.labelText = @"Signing you up";
// myProgressTask uses the HUD instance to update progress
[HUD showWhileExecuting:@selector(processFieldEntries) onTarget:self withObject:nil animated:YES];
我也在代表行收到警告。
Assigning to 'id<MBProgressHUDDelegate>' from incompatible type 'NewUserViewController *const __strong'
///
这是另一个示例 - HUD-test 是我设置的一个简单应用程序,用于显示完整代码和问题(第二张图片)\\
///