问候你有没有尝试调用TTOpenURL之前调用NSURLCredentialStorage &朋友?您可以设置不同的持久化模式(无,会话,永久=钥匙圈),等等,等等
NSURLCredential *credential = [NSURLCredential credentialWithUser:@"username" password:@"password" persistence:NSURLCredentialPersistencePermanent];
NSURLProtectionSpace *protectionSpace = [[NSURLProtectionSpace alloc] initWithHost:@"www.MySecureWebsite.me" port:80 protocol:@"http" realm:@"server's realm" authenticationMethod:NSURLAuthenticationMethodHTTPBasic];
[[NSURLCredentialStorage sharedCredentialStorage] setDefaultCredential:credential forProtectionSpace:protectionSpace];
[protectionSpace release];
嗯,当我会弹出一个警告的用户名和密码?像Safari一样? Whats This:realm:@“server's realm”? – user3187598 2011-03-05 21:24:28
而我如何使TTTableTextItem与此?在那里,我拨打网站这样:'[TTTableTextItem itemWithText:@ “星期一” 网址:@ “http://www.MySecureWebsite.me” \t \t \t \t \t \t \t \t \t \t \t accessoryURL:无],' – user3187598 2011-03-05 21:29:02