diff --git a/lib/ProMotion/XLForm/cells/xl_form_image_selector_cell.rb b/lib/ProMotion/XLForm/cells/xl_form_image_selector_cell.rb
index <HASH>..<HASH> 100644
--- a/lib/ProMotion/XLForm/cells/xl_form_image_selector_cell.rb
+++ b/lib/ProMotion/XLForm/cells/xl_form_image_selector_cell.rb
@@ -29,7 +29,7 @@ class XLFormImageSelectorCell < XLFormBaseCell
   end
 
   def formDescriptorCellDidSelectedWithFormController(controller)
-    if Kernel.const_defined?("UIAlertController")
+    if Kernel.const_defined?("UIAlertController") && UIAlertController.respond_to?(:'alertControllerWithTitle:message:preferredStyle:')
       alert = UIAlertController.alertControllerWithTitle(self.rowDescriptor.selectorTitle,
                                                          message: nil,
                                                          preferredStyle: UIAlertControllerStyleActionSheet)
correct a crash on ios 7