ecslidingviewcontroller

How to go back to current View Controller?

送分小仙女□ 提交于 2020-02-07 01:38:25
问题 I am implementing ECSlidingViewController in my app. Everything works fine, when I hit the menu button (UIBar) the left menu slides. But pressing the menu button again does not bring back the current ViewController . It works in the sample app, but I cannot find that line of code that brings back the current controller. Here is the code to show the menu: - (IBAction)menuButtonTapped:(id)sender { [self.slidingViewController anchorTopViewToRightAnimated:YES]; } Now I am looked everywhere for

iOS Adding Menu Causes Crash When Not First View

邮差的信 提交于 2020-01-07 05:48:07
问题 I am using a storyboard to switch between views. Pretty simple, until I try to add ECSlidingViewController. If I add the above slide menu to the first view I call using this: self.topViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"Main"]; If I set @"Main" to @"Speakers", the view loads just fine. I get the slide menu and everything. @"Main" also loads just fine. However, if I load @"Main" first like in the code above, then switch views to the one I've designated

Switching views with ECSliding without navigation menu

旧街凉风 提交于 2019-12-24 01:49:09
问题 I'm using ECSlidingViewController. In the sample project i added a button on the First view with an IBAction I want the button on the First view to go to the second view (without using the slide out navigation). - (IBAction)btnPressed:(id)sender { UIViewController *newTopViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"SecondTop"]; [self.slidingViewController anchorTopViewOffScreenTo:ECRight animations:nil onComplete:^{ CGRect frame = self.slidingViewController

Loaded the nib but didn't get a UITableView Exception

半腔热情 提交于 2019-12-17 22:02:28
问题 I'm trying to load a uitableview using ECSlidingViewController methods. When I call this code: UIStoryboard* sb = [UIStoryboard storyboardWithName:@"MainStoryboard_iPhone" bundle:nil]; UITableViewController* page = [sb instantiateViewControllerWithIdentifier:@"tableViewPage"]; CGRect frame = self.slidingViewController.topViewController.view.frame; self.slidingViewController.topViewController = page; self.slidingViewController.topViewController.view.frame = frame; [self.slidingViewController

Opening BasicMenu.xcodeproj fails on the new ECSlidingViewController 2

妖精的绣舞 提交于 2019-12-13 17:55:26
问题 Is it possible to open the BasicMenu.xcodeproj on xcode on the new version of ECSlidingViewController without having to do it via Examples.xcworkspace? I am trying to just work through the BasicMenu example specifically and when I do I get this error: ld: library not found for -lPods clang: error: linker command failed with exit code 1 (use -v to see invocation) 回答1: No, the dependencies to ECSlingViewController won't be available. You should be able to work with the BasicMenu project inside

ECSSlidingViewController, how to move to a specific view programmatically?

妖精的绣舞 提交于 2019-12-13 04:48:49
问题 I'm using an ECSSlidingViewController (on iPhone) it works perfectly but I would like to do something special. In my App I have an ECSSlidingViewController, a Menu (UITableViewController) for the underLeftViewControllerStoryboardId and several others UINavigationViewController when a menu entry is selected. A user can navigate from the Mail App to my App using an attachment in the mail. When this navigation happens (and the App was already started) I need to display one of the

Is there a way for the Top View Controller in ECSlidingViewController to know when the sidebar menu has been dismissed?

为君一笑 提交于 2019-12-11 09:44:51
问题 Is there a way for the Top View Controller in ECSlidingViewController to know when the sidebar menu has been dismissed, or when it is about to become the focus? i.e. a sort of viewWillAppear equivalent for ECSlidingViewController. I have a refreshcontrol in my top view controller that starts misbehaving after the sidebar is shown, so I am trying to figure out where I can call endRefreshing on the refreshControl so that the wierdness goes away. Putting it in viewWillAppear doesn't work. Thanks

Closing ECSlidingViewController menu

南楼画角 提交于 2019-12-10 03:52:31
问题 I'd like to implement my sliding menu in a way that pressing the Menu button will show my menu and pressing Menu again would hide it. But I can't understand how to do it with ECSlidingViewController. Will appreciate any help. 回答1: ECSlidingViewController has methods for this: anchorTopViewToRightAnimated: , anchorTopViewToLeftAnimated: and resetTopViewAnimated: . Example in your top view controller: [self.slidingViewController anchorTopViewToRightAnimated:YES] ECSlidingViewController provides

ECSlidingViewController 2 sliding from right to left

孤人 提交于 2019-12-08 06:56:41
问题 is there any way to use the ECSlidingViewController to slide the menu from right to left ? the default is left to right this code is working , the menu slide from left to right : - (IBAction)menuButtonTapped:(id)sender { [self.slidingViewController anchorTopViewToRightAnimated:YES]; } this code is not working , i want the menu slide from right to left : - (IBAction)menuButtonTapped:(id)sender { [self.slidingViewController anchorTopViewToLeftAnimated:YES]; } 回答1: This will do the trick. [self

Closing ECSlidingViewController menu

泄露秘密 提交于 2019-12-05 06:30:37
I'd like to implement my sliding menu in a way that pressing the Menu button will show my menu and pressing Menu again would hide it. But I can't understand how to do it with ECSlidingViewController. Will appreciate any help. ECSlidingViewController has methods for this: anchorTopViewToRightAnimated: , anchorTopViewToLeftAnimated: and resetTopViewAnimated: . Example in your top view controller: [self.slidingViewController anchorTopViewToRightAnimated:YES] ECSlidingViewController provides a category for UIViewController adding this slidingViewController property. You may also want to use