使用 iOS 共享菜单在 RoboVM 中共享?
Sharing in RoboVM using the iOS share menu?
我该如何打开共享菜单,例如在 iOS 照片应用中找到的菜单,作为对现有按钮的操作?
使用 UIAvtivityViewController class。您可以分享字符串和图片
NSString textShare = new NSString("This is the text to share");
NSArray texttoshare = new NSArray(textShare);
UIActivityViewController share = new UIActivityViewController(texttoshare,null);
presentViewController(share, true, null);
我该如何打开共享菜单,例如在 iOS 照片应用中找到的菜单,作为对现有按钮的操作?
使用 UIAvtivityViewController class。您可以分享字符串和图片
NSString textShare = new NSString("This is the text to share");
NSArray texttoshare = new NSArray(textShare);
UIActivityViewController share = new UIActivityViewController(texttoshare,null);
presentViewController(share, true, null);