diff --git a/src/ios/ios.pyx b/src/ios/ios.pyx index 824aeea..8f16c94 100644 --- a/src/ios/ios.pyx +++ b/src/ios/ios.pyx @@ -6,7 +6,7 @@ IOS module is wrapping some part of the IOS features. ''' -from python_ref cimport Py_INCREF, Py_DECREF +from cpython cimport Py_INCREF, Py_DECREF from os.path import basename cdef extern from "ios_wrapper.h": diff --git a/src/ios/ios_mail.m b/src/ios/ios_mail.m index 3d5f7ad..86d3e44 100644 --- a/src/ios/ios_mail.m +++ b/src/ios/ios_mail.m @@ -59,7 +59,7 @@ UIViewController *get_viewcontroller(void) { } [viewController becomeFirstResponder]; - [viewController dismissModalViewControllerAnimated:YES]; + [viewController dismissModalViewControllerAnimated:NO]; } @end @@ -99,7 +99,7 @@ int ios_send_email(char *subject, char *text, char *mimetype, char *filename, } controller.modalPresentationStyle = UIModalPresentationPageSheet; - [viewController presentModalViewController:controller animated:YES]; + [viewController presentModalViewController:controller animated:NO]; [controller release]; return 1;