CooperRS / RMActionController

This is an iOS control for presenting any UIView in an UIAlertController like manner
MIT License
539 stars 59 forks source link

App froze after present RMActionController on iOS 8 #11

Closed tiepvuvan closed 7 years ago

tiepvuvan commented 8 years ago

on iOS 8, present RMActionController have a strange animation, and after animation, app froze here is preview https://vid.me/Yrpe

Sample code:

if let dateSelectionVC = RMDateSelectionViewController(style: .Default, selectAction: RMAction(title: "Select".localizedString, style: .Default, andHandler: { [weak sender] (controller: RMActionController!) in

  let date = (controller.contentView as! UIDatePicker).date
  sender?.setOrderDate(date)

}), andCancelAction: RMAction(title: "Cancel".localizedString, style: .Cancel, andHandler: { _ in

})) {
   dateSelectionVC.datePicker.datePickerMode = .Date
   dateSelectionVC.disableBlurEffects = true
   dateSelectionVC.disableBouncingEffects = true
   dateSelectionVC.datePicker?.date = date
   dateSelectionVC.datePicker?.maximumDate = NSDate()

   presentViewController(dateSelectionVC, animated: true, completion: nil)
}
CooperRS commented 8 years ago

Hey!

this seems somehow being related to the keyboard being presented just before the RMDateSelectionViewController is presented.

Can you provide me a demo project with the bug?

Best regards, Roland

Krushnapal248 commented 8 years ago

I am facing exactly the same scenario. I am not using any keyboard as mentioned by Roland, can be a cause. So could be please verify the issue? I am stuck here for a long time. I also debug RMDateSelectionViewController and RMActionController, but no luck.

CooperRS commented 8 years ago

@Krushnapal248 Can you provide me a demo project with the issue?

CooperRS commented 7 years ago

Is this issue still present? Please reopen if this is the case.