swrevealviewcontroller

Modify frame of the frontView in SWRevealViewController

久未见 提交于 2019-12-10 11:57:33
问题 Typically, if one is using SWRevealViewController, the front view fully covers the rear view, and the rear view is visible only if some action is performed (swipe, tap etc). My requirement is that the rear view should always be visible at least a little bit when the view loads and when the user swipes back. I tried modifying the frame of the frontView to achieve this, but I saw no effect whatsoever. I put the frame update frame code in a method: -(void

SWRevealViewController push from subview

人盡茶涼 提交于 2019-12-08 09:12:30
问题 I have a LoginView and in success of login I am loading Slideout menu view (SWRevealViewController) . I am using the following to load reveal view controller with front view(Dashboard) and rear view (slidebarView) ! AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate]; UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil]; SWRevealViewController *viewController1 = (SWRevealViewController *)[mainStoryboard

Login View controller before SWRevealViewController

混江龙づ霸主 提交于 2019-12-07 01:04:36
I followed parse.com tutorials on how to implement login + register + segue to main controller if registration or login is successful. This works beautiful. I then wanted to implement a side navigation using SWRevealViewController. I followed APPCODA link on this and got it working only when "SWRevealViewController" is the initial view controller. When i have my parse login controller as initial i can't see anything from the navigational controller aka "SWRevealViewController." how would i be able fix this, make my login/register controllers the initial controllers and still be able to have

SWRevealViewController how to remove swipe gesture

家住魔仙堡 提交于 2019-12-06 22:11:09
问题 I am using good control SWRevealViewController , but by some redone I want to track my own swipe gestures on my screen. So how can I switch off swipe options? I want to work only revealToggle method that attached to my button. Did someone faced with this? Thank you 回答1: In order to disable the swipe gesture you can simple do: self.revealViewController.panGestureRecognizer.enabled=NO; For example: -(void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; self.revealViewController

Hiding UIBarbuttonItem of navigationcontroller swift

情到浓时终转凉″ 提交于 2019-12-06 11:31:42
问题 New to swift implemented sliding menu by learning from swrevealviewcontroller swift now i want to hide the menu button i.e. UIBarButtonItem which opens the side menu. I have searched found most of place following code: menuBtn.enabled = false but it only disables the button and not hide it. Please let me know what wrong i am doing here. 回答1: If it's the left button : self.navigationItem.leftBarButtonItem.enabled = false; 来源: https://stackoverflow.com/questions/33103482/hiding-uibarbuttonitem

iOS SWRevealViewController - pass data between controllers

倖福魔咒の 提交于 2019-12-06 04:26:49
问题 I am using SWRevealViewController to implement a slide menu (from the left side) in my application. Everything is working fine but now I am facing a little problem.I want to pass data from my "main" view controller (the one that is full visible, and I am not calling it "frontViewController" because it seems like it is not the front one). I have tried all possiblities I can think of to access the slide menu controller and pass data to it. Here is what i have tried: (MyControllerClass*)self

SWRevealViewController FrontViewController not loading, stuck as Black, other views fine

主宰稳场 提交于 2019-12-05 04:23:34
问题 I'm trying to transition our app to use SWRevealViewController to give us a side-bar on each side of the application. But despite following the code in one of the example apps, I'm getting an error where the ViewController for the front view doesn't work properly. viewDidLoad gets called, but everything remains black. Interestingly, if in my viewDidLoad, I set the background colour to red of the view, this is reflected. But stuff in Interface builder from the original story board is not. The

SWRevealViewController how to remove swipe gesture

给你一囗甜甜゛ 提交于 2019-12-05 01:55:55
I am using good control SWRevealViewController , but by some redone I want to track my own swipe gestures on my screen. So how can I switch off swipe options? I want to work only revealToggle method that attached to my button. Did someone faced with this? Thank you In order to disable the swipe gesture you can simple do: self.revealViewController.panGestureRecognizer.enabled=NO; For example: -(void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; self.revealViewController.panGestureRecognizer.enabled=NO; } -(void)viewWillDisappear:(BOOL)animated { [super viewWillDisappear

Hiding UIBarbuttonItem of navigationcontroller swift

六月ゝ 毕业季﹏ 提交于 2019-12-04 17:23:59
New to swift implemented sliding menu by learning from swrevealviewcontroller swift now i want to hide the menu button i.e. UIBarButtonItem which opens the side menu. I have searched found most of place following code: menuBtn.enabled = false but it only disables the button and not hide it. Please let me know what wrong i am doing here. If it's the left button : self.navigationItem.leftBarButtonItem.enabled = false; 来源: https://stackoverflow.com/questions/33103482/hiding-uibarbuttonitem-of-navigationcontroller-swift

iOS SWRevealViewController - pass data between controllers

僤鯓⒐⒋嵵緔 提交于 2019-12-04 12:54:12
I am using SWRevealViewController to implement a slide menu (from the left side) in my application. Everything is working fine but now I am facing a little problem.I want to pass data from my "main" view controller (the one that is full visible, and I am not calling it "frontViewController" because it seems like it is not the front one). I have tried all possiblities I can think of to access the slide menu controller and pass data to it. Here is what i have tried: (MyControllerClass*)self.revealViewController.rearViewController (MyControllerClass*)self.revealViewController.frontViewController