<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Sealyu

    --- 博客已遷移至: http://www.sealyu.com/blog

      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
      618 隨筆 :: 87 文章 :: 225 評論 :: 0 Trackbacks

    Yes! There is a way of using the backBarButton with a custom action. No, it’s not by overriding the backBarButton property of navigationItem. This is not an ugly solution with images that simulate the “Back”-button (arrow-shaped.) It’s possible to use the backBarButton for popping the current viewController as normal, but than with other animations such as UIViewAnimationTransitionCurlDown.

    Enough said, the solution is simple. You have to subclass your navigationController’s  popViewControllerAnimated:(BOOL)animated. So create a custom navigationController:

    customNavigationController.h

    #import
    @interface customNavigationController : UINavigationController {}
    @end

    And a custom “popViewControllerAnimated:(BOOL)animated”, this popViewControllerAnimated-function uses the “UIViewAnimationTransitionCurlDown” when popping from a SettingsTableView.

    customNavigationController.m

    #import "customNavigationController.h"
    #import "SettingsTableController.h"
     
    @implementation customNavigationController
     
    - (UIViewController *)popViewControllerAnimated:(BOOL)animated
    {
    if([[self.viewControllers lastObject] class] == [SettingsTableController class]){
     
    [UIView beginAnimations:nil context:NULL];
    [UIView setAnimationDuration: 1.00];
    [UIView setAnimationTransition:UIViewAnimationTransitionCurlDown
    forView:self.view cache:NO];
     
    UIViewController *viewController = [super popViewControllerAnimated:NO];
     
    [UIView commitAnimations];
     
    return viewController;
    } else {
    return [super popViewControllerAnimated:animated];
    }
    }
    @end

    Use your custom navigationController in your appDelegate:

    customNavigationController *navigationController =
    [[customNavigationController alloc]
    initWithRootViewController:rootView];

    posted on 2010-11-13 23:12 seal 閱讀(620) 評論(0)  編輯  收藏 所屬分類: iPhone
    主站蜘蛛池模板: 91麻豆精品国产自产在线观看亚洲 | 国产成人精品日本亚洲专区6| 亚洲日韩中文字幕天堂不卡| 亚洲最大的成人网站| 国产成人亚洲精品播放器下载| 一级毛片免费在线| 久久国产免费一区二区三区 | 免费观看美女用震蛋喷水的视频| 在线播放免费播放av片| 亚洲国产成人精品无码久久久久久综合 | 在线观看亚洲免费| 亚洲欧洲成人精品香蕉网| 亚洲美女精品视频| 亚洲AV成人无码网站| 国产男女爽爽爽免费视频 | 成年人视频在线观看免费| 免费一级毛片清高播放| 久久精品国产亚洲av麻豆 | 综合一区自拍亚洲综合图区| 91国内免费在线视频| 永久免费AV无码国产网站| 亚洲国产成人久久综合野外| 亚洲最大福利视频网站| 欧美亚洲国产SUV| 国产精品免费观看调教网| 香蕉高清免费永久在线视频 | 亚洲日本va中文字幕久久| 久久亚洲精品专区蓝色区| 一级做a爰性色毛片免费| 亚欧免费视频一区二区三区 | 午夜精品在线免费观看| 亚洲精品成人网站在线观看| 亚洲妇女熟BBW| 免费播放在线日本感人片| 大学生a级毛片免费观看| 久久精品国产亚洲综合色| 亚洲av无码av在线播放| 无码一区二区三区免费| 国产成人免费福利网站| 亚洲精品日韩专区silk| 亚洲精品视频免费|