1

大家好,我正试图在我的应用程序下载谷歌日历活动期间显示 mbprogress,但我有一个问题......如果我添加 mbprogress,我无法下载活动......

这是我的代码:

    - (void)viewDidLoad
{
    [super viewDidLoad];


   self.navigationItem.hidesBackButton = YES;

MBProgressHUD *HUD = [MBProgressHUD showHUDAddedTo:self.navigationController.view animated:YES];
    [self.navigationController.view addSubview:HUD];
    tabella.hidden=YES;

    HUD.delegate = self;
    HUD.labelText = @"Attendere prego...";
    HUD.square = NO;
    HUD.userInteractionEnabled=NO;
    [HUD showWhileExecuting:@selector(myTask:) onTarget:self withObject:nil animated:YES];

}


- (void)myTask:(id)selector{
    data = [[NSMutableArray alloc] init];
    googleCalendarService = [[GDataServiceGoogleCalendar alloc] init];

    [googleCalendarService setUserAgent:@"xxxxx"];
    [googleCalendarService setUserCredentialsWithUsername:@"xxxxxx"
                                                 password:@"yyyyy"];

    [self refresh];


}

- (void)refresh{



    [data removeAllObjects];
   [googleCalendarService fetchCalendarFeedForUsername:@"xxxxx"
                                               delegate:self
                                      didFinishSelector:@selector( calendarsTicket:finishedWithFeed:error: )];


}

问题是应用程序不去 calendarsTicket void

4

0 回答 0