2012-07-01 7 views
8

Tôi có mã sau đây trong một UIStoryBoardSegue để thực hiện phân đoạn đẩy curl-up.Bảng tùy chỉnh UIStoryboardHoạt động đẩy phù hợp với Pop và Pop

(void) perform { 

    UIViewController *src = (UIViewController *) self.sourceViewController; 
    UIViewController *dst = (UIViewController *) self.destinationViewController; 

    [UIView transitionWithView:src.navigationController.view duration:1 
         options:UIViewAnimationOptionCurveEaseInOut | UIViewAnimationOptionTransitionCurlUp 
        animations:^{ 
         [src.navigationController pushViewController:dst animated:NO]; 
        } 
        completion:NULL]; 

} 

Nó hoạt động tốt, nhưng khi tôi chạm vào nút "quay lại" trên ứng dụng, nó trượt ngược lại thay vì cuộn tròn. Bởi vì đây là một sự thúc đẩy, tôi cần phải bật bộ điều khiển xem hiện tại thay vì thêm một khoảng cách khác.

Làm cách nào để thực hiện "phân đoạn cửa sổ bật xuống xuống dưới"?

Trả lời