我正在尝试使用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 示例?