Hi,
Thanks for the brilliant Pythonista 2.0, the appex and dialogs module are awesome.
After playing with them for a while, I found returning from some APP may cause Pythonista crash. Bellow is the code:
# coding: utf-8
import ui
import dialogs
def button_action(sender):
dialogs.share_text('test')
v = ui.View(frame=(0,0,200,400))
btn = ui.Button(title='button')
btn.action = button_action
btn.center = v.center
v.add_subview(btn)
if ui.get_screen_size()[1] >= 768:
# iPad
v.present('popover')
else:
# iPhone
v.present(style='full_screen', hide_title_bar=False, orientations=['portrait'])
In the sharing dialog, choose an APP named "youdao dictionary"(An English-Chinese dictionary). The APP will show the dictionary item. Stay for a few seconds and click the OK button to return. Now Pythonista crashes.
I just tested 2 APPs, OALD and youdao dictionary. OALD is OK.