When I click the bar button item press me the form dialog appears ok and I can click done and it dismisses happily.
If I call the same function from the tableview_did_select The form dialog appears but when I click done I get the following error