swrevealviewcontroller

iOS- navigate From AppDelegate to certain item in slidemenu

≡放荡痞女 提交于 2020-01-25 06:20:55
问题 I use swrevealviewcontroller to add slide menu to my app , Let consider we have menu like this one in pic I need navigate from My appDelegate to any item in menu (ex:Map View Controller ) my tries : in my appDelegate.m UIStoryboard *storyboard =[UIStoryboard storyboardWithName:@"Main" bundle:nil]; InforView *school_view = [storyboard instantiateViewControllerWithIdentifier:@"info_view"]; [self.window makeKeyAndVisible]; [self.window.rootViewController presentViewController:school_view

Highlight active link in SWRevealViewController

跟風遠走 提交于 2020-01-24 12:06:05
问题 I'm using SWRevealViewController in my project to create a slide out menu for my app. Is it possible to highlight the currently active link in the menu which the slide out holds? I've tried sending a page reference identifier to the sidebarviewcontroller but it seems like this has no effect as the view is only loaded once when the app launches and is then simply shown and hidden. Any help would be much appreciated. Cheers 回答1: I'm not sure that this is actually a question related to

SWRevealViewController back to previous viewcontroller not working

最后都变了- 提交于 2020-01-16 03:57:04
问题 I'm using SWRevealViewController and I'm trying to implement a back button there's my code to go to another view: - (IBAction)goViewController:(id)sender { UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil]; UINavigationController *topViewController = [storyboard instantiateViewControllerWithIdentifier:@"globalFIndAutoCompleteID"]; [self.revealViewController pushFrontViewController:topViewController animated:YES]; } and my backbutton code: - (IBAction)backClick:

Self.revealViewController() returns nil

房东的猫 提交于 2020-01-15 10:15:38
问题 I am currently trying to get the pan gesture to reveal the controller. As of right now, my open button works, but when I add the last line, my program crashes because revealViewController is nil. Link to pod: https://github.com/John-Lluch/SWRevealViewController. import Foundation import UIKit class MainViewController : UIViewController{ @IBOutlet weak var mainButton: UIView! @IBOutlet weak var Open: UIBarButtonItem! override func viewDidLoad() { super.viewDidLoad() } override func

SWRevealViewController make sidebar button static & make the rearView appear on top of the frontView

落花浮王杯 提交于 2020-01-10 06:05:10
问题 Is there any way to make the rearView appear on top of the frontView as below image in storyboard using Objective-C. I want to make the Front View navigation Fixed & make sidebar button static. 回答1: This kind of android drawer external and open source library called as a CCKFNavDrawer . CCKFNavDrawer For using this following code. self.rootNav = (CCKFNavDrawer *)self.navigationController; [self.rootNav setCCKFNavDrawerDelegate:self]; Then implement delegate method - (void

Using UIPageView images to open ViewController w/ NavigationController

限于喜欢 提交于 2020-01-06 06:55:15
问题 I am trying to make three images in a UIPageView to open three different NavigationController . Here is my layout as of right now. I connected three Custom Segue to each NavigationController and under ContentViewController , I added the following @IBAction method: @IBAction func navJns(sender: AnyObject?){ let storyboard = UIStoryboard(name: "Nav", bundle: nil) let controller = storyboard.instantiateViewControllerWithIdentifier("Jeans") as! Jeans self.modalPresentationStyle =

Using UIPageView images to open ViewController w/ NavigationController

自古美人都是妖i 提交于 2020-01-06 06:54:23
问题 I am trying to make three images in a UIPageView to open three different NavigationController . Here is my layout as of right now. I connected three Custom Segue to each NavigationController and under ContentViewController , I added the following @IBAction method: @IBAction func navJns(sender: AnyObject?){ let storyboard = UIStoryboard(name: "Nav", bundle: nil) let controller = storyboard.instantiateViewControllerWithIdentifier("Jeans") as! Jeans self.modalPresentationStyle =

Using UIPageView images to open ViewController w/ NavigationController

前提是你 提交于 2020-01-06 06:54:02
问题 I am trying to make three images in a UIPageView to open three different NavigationController . Here is my layout as of right now. I connected three Custom Segue to each NavigationController and under ContentViewController , I added the following @IBAction method: @IBAction func navJns(sender: AnyObject?){ let storyboard = UIStoryboard(name: "Nav", bundle: nil) let controller = storyboard.instantiateViewControllerWithIdentifier("Jeans") as! Jeans self.modalPresentationStyle =

SWRevealViewController from the right side on swift

核能气质少年 提交于 2020-01-01 08:34:38
问题 I am using SWRevealViewController library to make a slide out menu in swift, but I am struggling to put this menu in the right side. I have seen on the library description this comment // Optional right view controller, can be nil if not used @property (nonatomic) UIViewController *rightViewController; but I am not familiar with objective C and I am not being able to do this on swift. This is a part of my code for the default(left) menu: class ViewController: UIViewController,

how to send data from one ViewController to another which has SWRevealViewController

回眸只為那壹抹淺笑 提交于 2019-12-25 07:59:14
问题 I have impleented SWRevealViewController for sideMenu. My project is is Swift and SWRevealViewController is in Objective-c. SWRevealViewController is not initial view Controller.there is one intial View Contoller(1VC) and it has Push segue on SWRevealViewController. another ViewController (2VC) is act as FrontView. I want to pass data from (1VC) to (2VC). but I could not find any way 回答1: Two ways: In case of segue override func prepareForSegue(segue: UIStoryboardSegue!,sender: AnyObject!){ /