Comments (4)
Is there any solution?:)
from lgsidemenucontroller.
-
(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.ViewController *viewController = [ViewController new];
NavigationController *navigationController = [[NavigationController alloc] initWithRootViewController:viewController];UITabBarController *tabbarController = [[UITabBarController alloc]init];
tabbarController.viewControllers = @[navigationController];MainViewController *mainViewController = [[MainViewController alloc] initWithRootViewController:tabbarController
presentationStyle:LGSideMenuPresentationStyleSlideBelow
type:0];self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.backgroundColor = [UIColor whiteColor];
self.window.rootViewController = mainViewController;
[self.window makeKeyAndVisible];return YES;
}
#define kMainViewController (MainViewController *)[UIApplication sharedApplication].delegate.window.rootViewController
#define kTabbarController [(MainViewController *)[UIApplication sharedApplication].delegate.window.rootViewController rootViewController]
// this is the leftViewController
-
(void)tableView:(UITableView _)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
UIViewController *viewController = [UIViewController new];
viewController.view.backgroundColor = [UIColor whiteColor];
viewController.title = titlesArray[indexPath.row];
UITabBarController *tab = (UITabBarController *)kTabbarController;
NavigationController *nav = (NavigationController)tab.viewControllers[0];
viewController.hidesBottomBarWhenPushed = YES;
[nav pushViewController:viewController animated:YES];// [kNavigationController pushViewController:viewController animated:YES]; [kMainViewController hideLeftViewAnimated:YES completionHandler:nil];
}
Now I just add one ViewController into UITabbarController.
I can send you a demo to your Email.
from lgsidemenucontroller.
https://github.com/wanglianghd/WLSideMenuDemo @eiros
from lgsidemenucontroller.
Thank you! @wanglianghd
from lgsidemenucontroller.
Related Issues (20)
- [INFO] is this still maintained? HOT 2
- A number of logic errors appear when running Xcode's Analyze utility HOT 1
- Warning when adding LGSideMenuController via SPM HOT 1
- Issue with status bar color starting in version 3.1.0 HOT 2
- All methods in LGSideMenuDelegate are required HOT 2
- No such module LGSideMenuController HOT 2
- CDN: trunk URL couldn't be downloaded
- Write storyboard
- how to make rootview with corners? HOT 3
- Thread 1: "Invalid parameter not satisfying: source" HOT 1
- LG HOT 2
- how i can push navigation controller when click at the cell in right side menu HOT 1
- how resize the rootViewController height HOT 1
- Could not create a segue of class '(null)'' HOT 5
- Issue on navigation bar image
- How to show menu when press on menu icon in navigation bar
- Show Almost always
- Getting this issue with Xcode 14.2
- Root Controller not showing HOT 1
- Error on missing files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lgsidemenucontroller.