ios - Skydrive integration in iPhone App -
i'm developing app have integrated sky drive framework.but when try login app crashes.
here code
(ibaction)signinmethod:(id)sender { self.liveclient = [[liveconnectclient alloc] initwithclientid:app_client_id delegate:self userstate:@"initialize"]; } - (void)authcompleted:(liveconnectsessionstatus) status session:(liveconnectsession *) session userstate:(id) userstate { if ([userstate isequal:@"initialize"]) { nslog(@"initialized"); [self.liveclient login:self scopes:[nsarray arraywithobjects:@"wl.signin", nil] delegate:self userstate:@"signin"]; } if ([userstate isequal:@"signin"]) { if (session != nil) { nslog(@"signed in"); } } } - (void)authfailed:(nserror *) error userstate:(id)userstate { nslog(@"%@",[nsstring stringwithformat:@"error: %@", [error localizeddescription]]); // [self.infolabel settext:[nsstring stringwithformat:@"error: %@", [error localizeddescription]]]; }
edit
now i'm able login. getting error because didn't integrated framework properly.
Comments
Post a Comment