Skip to content

CoderLeonPeng/LPTabbarViewController

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

##LPTabbarViewController的使用

  • LPMainViewController文件夹下面的所有文件添加到你的项目中
  • 导入主头文件:#import "LPMainViewController.h"
  • 创建你要管理的子控制器。
  • AppDelegate 中写下面的代码。
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.

self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
UIStoryboard  *storyBoard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
LPMainViewController *mainVc = [storyBoard instantiateViewControllerWithIdentifier:@"LPMainViewController"];
LPItemOneTableViewController *oneVc = [[LPItemOneTableViewController alloc] init];
LPItemTwoViewController *twoVc = [[LPItemTwoViewController alloc] init];
LPItemThreeViewController *threeVc = [[LPItemThreeViewController alloc] init];
mainVc.controllers = @[oneVc,twoVc,threeVc];
//    mainVc.animationType = AnimationTypeNone;
//    mainVc.animationType = AnimationTypeCube;
//    mainVc.animationType = AnimationTypeFade;
//    mainVc.animationType = AnimationTypeCustom;
//    mainVc.animationType = AnimationTypeMoveIn;
//    mainVc.animationType = AnimationTypeReveal;
//    mainVc.animationType = AnimationTypePageCurl;
//
//    mainVc.animationType = AnimationTypePageUnCurl;
mainVc.animationType = AnimationTypeSuckEffect;
//
//    mainVc.animationType = AnimationTypeRippleEffect;
//    mainVc.animationType = AnimationTypeOglFlip;



self.window.rootViewController = mainVc;

[self.window makeKeyAndVisible];

return YES;
}

About

比系统的UITabbarViewController更加好用,tabbar可以任意放置,实现更加灵活,你值得试用一下。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published