Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Storyboard Integration
-
Is there a way to include a Pythonista Script/Scene as part of a Storyboarded App?
Since PythonistaAppViewController is derived from a UIViewController it's probably not a big problem. I just don't know how to make the segue call the 'initWithScriptPath' method when transitioning. Actually I just don't know what gets called ...
Also would it be possible to pass objects in this way '[[segue destinationViewController] setDetailItem:object];' back and forth between a 'normal UIViewController' and a 'PythonistaAppViewController'?cheers kai
P.S. pythonista is great! It will be very cool to do more heavy lifting in ios apps with python in future.
-
Addendum: Apparently 'initWithCoder' is called when a segues creates and inits a UIViewController. How can we teach a segue to call 'initWithScriptPath' ?
-
I have tried to do the segue manually creating the view and calling presentViewController:animated:completion
But no luck, all the screen goes gray :( -
I was able to mix storyboard with pythonista, but only shows std outpu.
I couldn't run any scene or canvas :( -
All done!! after some reverse engineering I could manage to integrate pythonista with storyboards.
And even run scenes, the only limitation is that the method that shows the animation loop doesn't get called.
You must call it manually (I use a button for it), and the other limitation (for now) it's that when a scene is on screen I cant stop it.