闲鱼

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];

}


你可能感兴趣的:(闲鱼)