带有Google日历的MBProgressHUD

时间:2012-11-26 19:56:52

标签: xcode calendar hud

你好我们试图在我的应用程序下载谷歌日历事件期间显示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: )];


}

问题是应用程序没有进入日历游戏无效

0 个答案:

没有答案