17

In my app I have added these lines of codes to incorporate the functionality of uiactivityviewcontroller

    UIImage *yourImage = someImg;
    UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:[NSArray arrayWithObjects:@"abcdefgh",yourImage, nil] applicationActivities:nil];
    activityVC.excludedActivityTypes = @[ UIActivityTypeMessage ,UIActivityTypeAssignToContact,UIActivityTypeSaveToCameraRoll];
    [self presentViewController:activityVC animated:YES completion:nil]; 

and UIActivityViewContoller working fine, but the UI is like this: no FB icon, no Twitter icon and this is a screen-shot of an iPad:

screenshot of an iPad

However it is showing perfect UI in iOS 6. What might be the reason for this?

4

3 回答 3

4

让我告诉您,您的代码是正确的,经过一些测试,我终于可以修复它,只需转到设置添加社交帐户(Facebook - Twitter - Flickr - 邮件),再次运行您的应用程序,您将看到图标。来自坎昆的问候! 在此处输入图像描述

于 2013-10-24T17:42:36.410 回答
3

你在用模拟器吗?根据我的经验,UIActivityViewController模拟器中的 UI 是有问题的,但如果您在实际设备上进行测试,它运行良好。

尝试在设备上进行测试。

于 2013-09-19T12:51:55.007 回答
3

问题出在设备上。它在 iPhone 上运行良好

于 2013-10-31T08:40:08.670 回答