Iphone 在iOs 5中访问时,来自web服务器的数据将变为空

Iphone 在iOs 5中访问时,来自web服务器的数据将变为空,iphone,Iphone,我有一个应用程序,它从web服务器获取web地址(链接),并将其显示在我的MFMailComposeViewController类中。在iOs 4上,网址可见,但在iOs 5上,有时网址为空,链接不工作,但有时链接工作。有人能提出需要做什么吗?谢谢 我将此代码放在MFMailComposeViewController的主体中 [body appendString: @"Use your Computer Browser <a href=\""]; [body appendString: s

我有一个应用程序,它从web服务器获取web地址(链接),并将其显示在我的MFMailComposeViewController类中。在iOs 4上,网址可见,但在iOs 5上,有时网址为空,链接不工作,但有时链接工作。有人能提出需要做什么吗?谢谢


我将此代码放在MFMailComposeViewController的主体中

[body appendString: @"Use your Computer Browser <a href=\""];
[body appendString: self.myContact.webAddress];

[body appendString:@“使用您的计算机浏览器您是否也包括这行代码:

[body appendString: "\">text of link goes here</a>"];

并确保您的HTML有效且符合您的要求。

显示获取网址的代码并将其传递给MFMailComposeViewController。我将此代码放在MFMailComposeViewController的正文中-[body appendString:@”在iOs5中使用您的计算机浏览器,网址有时返回空。但在iOs 4中,它工作正常。首先在self.myContact.webAddress上做一个NSLog我同意Terenta…请编辑您的原始问题,以显示更多代码。您的评论中的一行没有太多可处理的内容。
NSLog(@"Body: %@", body);