ifish/Ifish/views/DropImgView/PlayNDropViewController.m

51 lines
1.4 KiB
Objective-C

//
// PlayNDropViewController.m
// Ifish
//
// Created by imac on 16/1/5.
// Copyright © 2016年 imac. All rights reserved.
//
#import "PlayNDropViewController.h"
#import "MaryPopin/UIViewController+MaryPopin.h"
@interface PlayNDropViewController ()
@end
@implementation PlayNDropViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
}
-(void)CCMPlayNDropViewWillStartDismissAnimationWithDynamics:(CCMPlayNDropView *)view{
self.view.superview.userInteractionEnabled = NO;
self.view.userInteractionEnabled = NO;
}
-(void)CCMPlayNDropViewDidFinishDismissAnimationWithDynamics:(CCMPlayNDropView *)view{
self.view.superview.userInteractionEnabled = YES;
CGRect frame = self.view.frame;
frame.origin.y = -1000;
self.view.frame = frame;
[self.parentViewController dismissCurrentPopinControllerAnimated:YES];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
*/
@end