在iOS 6上,在发送一些电子邮件消息后(通过使用MFMailComposeViewController),电子邮件屏幕打开速度非常慢 - 首次打开时没有填充任何字段(没有主题,没有正文等)几秒钟,并且最终(在发送大约8条消息之后),在电子邮件视图控制器正确显示之前,向用户显示黑屏几秒钟.
在显示每个黑屏之前,日志会吐出以下行:
[MFMailComposeRemoteViewController:....]等待来自com.apple.MailCompositionService的围栏障碍超时
此外,在iOS6上使用MFMailComposeViewController会导致MailCompositionS进程开始占用内存(它在我的iPhone上一直上升到大约260MB).我假设这是MFMailComposeViewController显示问题的原因.
在iOS 5上运行正常.此问题仅发生在iOS 6上.
有没有人找到解决这个问题的方法?
谢谢!
代码是标准的,但无论如何我都会包含它:
-(IBAction)doEmailLog:(id)sender
{
if( [self canSendMail] )
{
// create the compose message view controller
MFMailComposeViewController* mailComposer = [[MFMailComposeViewController alloc] init];
// this class will handle the cancel / send results
mailComposer.mailComposeDelegate = self;
// fill in the header and body
[mailComposer setSubject:@"My Subject"];
[mailComposer setMessageBody:@"My message body" isHTML:NO];
// attach log file
if ([[NSFileManager defaultManager] fileExistsAtPath:filename])
{
NSData *data = [NSData dataWithContentsOfFile:filename];
[mailComposer addAttachmentData:data mimeType:@"text/plain" fileName:filename];
} …Run Code Online (Sandbox Code Playgroud) 我正在使用GoogleAnalytics-iOS-SDK来跟踪我的移动应用上的活动.一切都按预期工作(耶!).问题是我无法看到任何人口统计数据.我包括AdSupport.framework以及libAdIdAccess.a(因此我在应用启动时看不到任何发送到控制台的Google Analytics警告).我还设置了必要的标志:
GAI *gai = [GAI sharedInstance];
gai.defaultTracker = [gai trackerWithTrackingId:GOOGLE_ANALYTICS_TRACKING_ID];
gai.defaultTracker.allowIDFACollection = YES;
Run Code Online (Sandbox Code Playgroud)
我有一些人测试应用程序.所以,希望我超过他们为许多用户提供的任何门槛......(但是,我不知道需要多少用户).
有谁知道我可能会缺少什么?我是否需要登录任何Google帐户才能让应用访问包含所有人口统计数据的DoubleClick Cookie?