【发布时间】:2012-08-29 12:18:31
【问题描述】:
我正在尝试使用一种模式来初始化 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 是一个简单的应用程序,我设置它来显示完整的代码和问题(第二张图片) \\
///
【问题讨论】:
标签: ios ios5 uiviewcontroller viewcontroller mbprogresshud