
class WMJPoperTransitionManager: NSObject,UIViewControllerTransitioningDelegate,UIViewControllerAnimatedTransitioning {
    
    var isDismiss = false
    
    var poperframe = CGRectZero
    
    //MARK:-转场动画UIViewControllerTransitioningDelegate
    // 该方法用于返回一个负责转场动画的对象
    func presentationControllerForPresentedViewController(presented: UIViewController, presentingViewController presenting: UIViewController, sourceViewController source: UIViewController) -> UIPresentationController?{
        let pc = WMJPresentationController(presentedViewController: presented, presentingViewController: presenting)