Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void iosShareStone(String path) {
- GLKView glkView = ((GLKView) ((IOSApplication) Gdx.app).getUIViewController().getView());
- UIImage image = glkView.getSnapshot();
- NSArray<NSObject> imageArray = new NSArray<NSObject>(image);
- UIActivityViewController share = new UIActivityViewController(imageArray,null);
- ((IOSApplication)Gdx.app).getUIViewController().presentViewController(share, true, null);
- //NSData data = image.toPNGData();
- //data.write(, true);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement