transitionFromView:toView:duration:options:completion:
类似于_[self.view addSubview:secondView];
根视图控制器.m
self.svc = [[secondVC alloc]init];
[UIView transitionFromView:self.view toView:self.svc.view duration:1.0 options:UIViewAnimationOptionTransitionFlipFromLeft completion:^(BOOL finished) {}];
类似于
根视图控制器.m
self.svc = [[secondVC alloc]init];
[self.view addSubView:self.svc];
[UIView animateWithDuration:0.25
delay:0
options:UIViewAnimationOptionCurveEaseOut.............
第一种方法会导致内存泄漏吗?这种方法正确吗?