mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-10 04:40:10 +07:00
Fixed iPad share crash, updated iOS version to 3.5
This commit is contained in:
parent
b64cbc223f
commit
a8bc2f10e4
@ -1,6 +1,6 @@
|
||||
app.version=1.0
|
||||
app.version=3.5
|
||||
app.id=io.anuke.mindustry
|
||||
app.mainclass=io.anuke.mindustry.IOSLauncher
|
||||
app.executable=IOSLauncher
|
||||
app.build=5
|
||||
app.build=6
|
||||
app.name=Mindustry
|
||||
|
@ -85,6 +85,7 @@ public class IOSLauncher extends IOSApplication.Delegate {
|
||||
|
||||
NSURL url = new NSURL(to.file());
|
||||
UIActivityViewController p = new UIActivityViewController(Collections.singletonList(url), null);
|
||||
p.getPopoverPresentationController().setSourceView(UIApplication.getSharedApplication().getKeyWindow().getRootViewController().getView());
|
||||
|
||||
UIApplication.getSharedApplication().getKeyWindow().getRootViewController()
|
||||
.presentViewController(p, true, () -> io.anuke.ucore.util.Log.info("Success! Presented {0}", to));
|
||||
|
Loading…
Reference in New Issue
Block a user