我试图访问UIActivityViewController
从MonoTouch的用下面的代码:
var textToShare = new NSString("hallo there");
var activityItems = new NSObject[] {textToShare};
var excludedActivityTypes = new NSString[] { new NSString("UIActivityTypePostToWeibo"), new NSString("UIActivityTypeMessage") };
var activityViewController = new UIActivityViewController(activityItems, null);
activityViewController.ExcludedActivityTypes = excludedActivityTypes;
this.PresentViewController(activityViewController, true, null)
显示了iOS动作片,但指定的活动不被排除。 任何建议的问题是什么? 是否有任何MonoTouch的样本呢?