CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

LBPresentTransitions 1.1.4

LBPresentTransitions 1.1.4

Maintained by A1129434577.



  • By
  • 刘彬

LBCustemPresentTransitions

LBCustemPresentTransitions *transitions = [LBCustemPresentTransitions shareInstanse];
NSString *text = _textArray[indexPath.row];
if ([text containsString:@""]) {
    transitions.contentMode = LBViewContentModeTop;
}else if ([text containsString:@""]) {
    transitions.contentMode = LBViewContentModeLeft;
}else if ([text containsString:@""]) {
    transitions.contentMode = LBViewContentModeBottom;
}else if ([text containsString:@""]) {
    transitions.contentMode = LBViewContentModeRight;
}else if ([text containsString:@""]) {
    transitions.contentMode = LBViewContentModeCenter;
}
TestViewController *presentVC = [[TestViewController alloc] init];

if ([text containsString:@""]) {
    UINavigationController *presentNaVC = [[UINavigationController alloc] initWithRootViewController:presentVC];
    presentNaVC.modalPresentationStyle = UIModalPresentationCustom;
    presentNaVC.transitioningDelegate = transitions;
    [self presentViewController:presentNaVC animated:YES completion:nil];
}else{
    presentVC.modalPresentationStyle = UIModalPresentationCustom;
    presentVC.transitioningDelegate = transitions;
    [self presentViewController:presentVC animated:YES completion:nil];
}