<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
    主站蜘蛛池模板: 久久精品视频免费看| 一级免费黄色大片| 亚洲国产最大av| 免费高清在线爱做视频| 性感美女视频免费网站午夜| 免费人成网站在线播放| 成人毛片免费观看| 国内精品99亚洲免费高清| 亚洲无人区一区二区三区| 亚洲字幕AV一区二区三区四区| 亚洲黄色免费观看| 亚洲AV无码一区东京热久久| 亚洲免费福利在线视频| 久久久久久AV无码免费网站下载 | 亚洲天堂免费在线视频| 国产香蕉免费精品视频| 亚洲成a人无码av波多野按摩| 可以免费看黄视频的网站| 亚洲欧洲一区二区三区| 亚洲卡一卡二卡乱码新区| 在线a毛片免费视频观看| 亚洲av成本人无码网站| 在线观看免费亚洲| 免费无遮挡无码视频在线观看| 黄色一级毛片免费| 一个人在线观看视频免费| 亚洲国产精品乱码一区二区| 无遮挡呻吟娇喘视频免费播放| 99久久免费国产香蕉麻豆| 亚洲日韩久久综合中文字幕| 欧洲乱码伦视频免费国产 | 国产亚洲综合久久系列| 国产精品自拍亚洲| 色噜噜亚洲精品中文字幕| 亚洲精品免费网站| 成人免费网站视频www| 亚洲高清国产拍精品青青草原| 亚洲欧洲国产综合AV无码久久| xxxx日本免费| 亚洲综合综合在线| 免费无码毛片一区二区APP|