【发布时间】:2011-09-26 16:42:58
【问题描述】:
我想将用户提供的密码保存在变量中。从哪里获取密码值。我查看代码,但它只包含用户名。我在我的应用程序中使用 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];
请帮我如何保存密码?
【问题讨论】:
-
我不明白你的问题,你是在问如何“保存”用户的密码?此外,如果您的发布目标是 iOS5,请考虑使用 TwitterKit
-
@Devraj Apple 的克格勃部门对提到最高机密“T”字的开发人员进行射击。 ;) NDA 仍然有效!
-
@DavidSchiefer 哎呀,我看了 Keynote 并提到了它,所以我认为它的知识是公开的,但不是它是如何工作的。无论哪种方式都对不起苹果! :)
标签: iphone twitter mgtwitterengine