我想将用户提供的密码保存在变量中。从哪里获取密码值。我查看代码,但它只包含用户名。我在我的应用程序中使用 MGTwitterengine api。这是在控制台上打印数据的功能。
-(void)setUsername:(NSString *)newUsername password:(NSString *)newPassword
{
NSLog(@"uset sername %@ and password %@",newUsername,newPassword);
...
}
我调试了所有功能,但我看到这个功能在登录后正在运行。但是,尽管用户名打印得很好,但这是在密码值中打印 null。实际上我必须追踪用户的所有推文价值。我通过了MGTwitterEngine。有一段代码,但需要写用户名和密码。
这是代码
MGTwitterEngine *twitterEngine = [[MGTwitterEngine alloc] initWithDelegate:self];
[twitterEngine setUsername:@"username" password:@"password"];
// Get updates from people the authenticated user follows.
NSString *connectionID = [twitterEngine getFollowedTimelineFor:nil since:nil startingAtPage:0];
请帮助我如何保存密码?