Closed designbymind closed 3 years ago
Update: After some research and testing, I found a workaround for the Modal Window being removed from Ti context/stack after ti.imagecrop
done
or cancel
events are called. Just wanted to share in case anyone else runs into this issue...
The required modalStyle
property to be applied when opening a modal window is:
modalStyle: Ti.UI.iOS.MODAL_PRESENTATION_OVER_CURRENT_FULL_SCREEN
Example:
// Open Add Photo (modal) Window (the window `ti.imagecrop` is called from)
Alloy.createController('path/to/your/modal/window/controller').getView().open({
modal: true,
forceModal: false,
modalStyle: Ti.UI.iOS.MODAL_PRESENTATION_OVER_CURRENT_FULL_SCREEN, // Important
modalTransitionStyle: Ti.UI.iOS.MODAL_TRANSITION_STYLE_COVER_VERTICAL
});
Readme updated!
If ImageCrop is opened within (over) a Modal Window, it closes said modal after
done
orcancel
events are called & app becomes unresponsive.