闲鱼

LBFishViewController:空

LBHomeViewController:空

LBMessageViewController:空

LBMineViewController:空

AppDelegate.m:#import "AppDelegate.h"

#import "LBTabBarController.h"

#define LBKeyWindow [UIApplication sharedApplication].keyWindow

@interface AppDelegate ()

@end

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];

LBTabBarController *tabBarVc = [[LBTabBarController alloc] init];

CATransition *anim = [[CATransition alloc] init];

anim.type = @"rippleEffect";

anim.duration = 1.0;

[self.window.layer addAnimation:anim forKey:nil];

self.window.rootViewController = tabBarVc;

[self.window makeKeyAndVisible];

return YES;

}


LBpostViewController.m

- (void)viewDidLoad {

[super viewDidLoad];

[self setUpNav];

}

- (void)setUpNav

{

UIBarButtonItem *backItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"header_back_icon"] style:UIBarButtonItemStyleDone target:self action:@selector(pop)];

self.navigationItem.leftBarButtonItem = backItem;

}

- (void)pop

{

[self dismissViewControllerAnimated:YES completion:nil];

}


©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 文中代码来源:LLTabBar。 设计思路:系统自带的tabBar做不到这个要求,所以可以在系统的tabBar上添...
    wMellon阅读 4,297评论 1 1
  • 前几天微博上几位iOS开发者分享了一个自定义tabBar的demo,淘宝闲鱼app样式,我看了一下,在开发中这一类...
    _table阅读 4,664评论 6 16
  • 1.自定义控件 a.继承某个控件 b.重写initWithFrame方法可以设置一些它的属性 c.在layouts...
    圍繞的城阅读 3,510评论 2 4
  • //设置尺寸为屏幕尺寸的时候self.window = [[UIWindow alloc] initWithFra...
    LuckTime阅读 841评论 0 0
  • 不知不觉坚持写作已经6个月了。日子似乎不短了,中间的收获却寥寥无几。我写的东西也似乎没有进步。 从决定写作...
    小七丫头阅读 246评论 0 0