<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 :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
      618 隨筆 :: 87 文章 :: 225 評(píng)論 :: 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 閱讀(627) 評(píng)論(0)  編輯  收藏 所屬分類: iPhone
    主站蜘蛛池模板: 亚洲av成人中文无码专区| 亚洲三级在线播放| 亚洲色一色噜一噜噜噜| 女人18特级一级毛片免费视频| 亚洲成人免费在线| 99re免费在线视频| 无码精品人妻一区二区三区免费看| 无码 免费 国产在线观看91| 日本免费久久久久久久网站| 在线观看黄片免费入口不卡| 可以免费观看的国产视频| 日本在线看片免费| 中国xxxxx高清免费看视频| 97久久免费视频| 成年18网站免费视频网站| 日韩国产免费一区二区三区| 99在线视频免费观看| 456亚洲人成影院在线观| a级毛片高清免费视频| 国产成人免费高清激情明星| 成在线人免费无码高潮喷水| 日本在线免费播放| 亚洲AV蜜桃永久无码精品| 亚洲AV电影院在线观看| 香蕉视频免费在线播放| 亚洲精品国产免费| 亚洲s色大片在线观看| 美女露隐私全部免费直播| 我想看一级毛片免费的| 亚洲第一成年男人的天堂| 亚洲精品卡2卡3卡4卡5卡区| 亚洲av日韩综合一区在线观看| 日产国产精品亚洲系列| 久久久精品视频免费观看| 亚洲AV无码国产剧情| 亚洲情A成黄在线观看动漫软件| 久久亚洲国产精品| 亚洲欧洲日产国码高潮αv| 日韩午夜免费视频| 亚洲中文字幕成人在线| 国产黄色一级毛片亚洲黄片大全 |