Login twitter IOS without go to the Settings (like instagram) -
i'm newer in twitter integration ios
so, have doubt that.
i saw in many examples on web when don't have account connected in twitter, show alert , redirect user setting login in twitter account.
how can make login form instagram? user can insert user_name , password , submit it?
my code @ moment:
accountstore = [[acaccountstore alloc] init]; acaccounttype *twittertype = [accountstore accounttypewithaccounttypeidentifier:acaccounttypeidentifiertwitter]; // request access user use twitter accounts. [accountstore requestaccesstoaccountswithtype:twittertype options:nil completion:^(bool granted, nserror *error) { if (granted == yes){ //get accounts use. accounts = [accountstore accountswithaccounttype:twittertype]; if ([accounts count] > 0) nslog(@"account: %@", accounts); }else{ // show alert inser user_name , password login on twitter alerttwitteraccount = [[uialertview alloc] initwithtitle:@"enter twitter account" message:nil delegate:self cancelbuttontitle:@"cancel" otherbuttontitles:@"login", nil]; [alerttwitteraccount setalertviewstyle:uialertviewstyleloginandpasswordinput]; [[alerttwitteraccount textfieldatindex:0] setplaceholder:@"user"]; [alerttwitteraccount setdelegate:self]; [alerttwitteraccount settag:1]; [alerttwitteraccount show]; } }];
anyone have example or know how using slrequest or acaccount?
thanks
Comments
Post a Comment