FAQ Database Discussion Community


iOS: TableView interfering with top status bar

ios,objective-c,iphone,uitableview,swrevealviewcontroller
I'm developing an iOS application and i'm using the SWRevealViewController, i made the side-menu by adding a TableView and everything works fine, but when i open the side-menu and scroll down, the contents(cells) are interfering with the iPhone top bar. Please view the image below Usually adding a Navigation Controller...

SWRevealViewController from modal segue

ios,objective-c,swrevealviewcontroller
I'm using SWRevealViewController after following AppCoda's tutorial. I was able to get it working in the tutorial with no issues, but not able to adapt it to my own app. The reason is that in my app I don't use the SWRevealVC from the initial screen. The menu button to...

AVPlayer Crashes on Device When Dismissing View

ios,avplayer,iphone-6,swrevealviewcontroller
I'm having an issue with the AVPlayer. I've tried many solutions but it still crashes after I move to a different view. class GuideVideo : BaseViewController{ var avPlayer: AVPlayer? var avPlayerLayer: AVPlayerLayer? override func viewDidLoad() { super.viewDidLoad() generateVideo() } func generateVideo () { let videoURLWithPath = data["VideoUrl"] let videoFilePath =...

Login View controller before SWRevealViewController

ios,objective-c,uiviewcontroller,parse.com,swrevealviewcontroller
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...

How to use SWRevealVC with didSelectRowAtIndexPath and prepareForSegue?

ios,uitableview,uistoryboardsegue,didselectrowatindexpath,swrevealviewcontroller
I have a problem with using SWRevealViewController. How to call prepare for segue in didSelectRowAtIndexPath? It is necessary because in tableView I have name of categories and some of this categories have its own subcategories. For example my list: - category1 - category2 + category3 - category4 So, when I...

Performe, navigate, to child view from App Delegate

ios,objective-c,iphone,uinavigationcontroller,swrevealviewcontroller
I'm trying to open child view(PostReaderViewController, the fourth view on Image ) when application is lunched through Push notification It's. Storyboard Image : This is my Code : - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { ... //Detecting if the app was lunched by clicking on push notification : NSDictionary *userInfo =...

How to animate the rear view controller on top of front view controller on toggling in SWRevealViewController?

ios,objective-c,swrevealviewcontroller
I am using the SWRevealViewController to load front and rear views. As of now, the default behaviour is that when the front view is swiped, the rear view is shown under the front view. This is making some of the portion of the rear view to hide behind the front...

iOS: Programmatically called segue not working

ios,objective-c,swrevealviewcontroller
I am using a SWRevealViewController segue that is called via method but isn't getting triggered. No errors are reported to the log, and it doesn't cause the app to hang or crash. I've checked the segue link on the storyboard and it has the correct class and identifier. - (void)viewDidLoad...

iOS: SWRevealViewController and multiple NavigationControllers

ios,objective-c,iphone,swrevealviewcontroller
I'm new to iOS development and i was looking for a side-menu technique to use in my application (something similar to NavigationDrawer in android) after i did my researches i was very impressed by the SWRevealViewController controller, but i have encountered this problem: Subject: SWRevealViewController Problem: I want when a...

How to navigate to sw_front view using SWRevealViewcontroller in ios?

ios,objective-c,swrevealviewcontroller
I am using SWRevealViewController to impliment sidebar in my ios app.I have followed appcoda tutorial to implement it.As per this tutorial I have made two segue's sw_front which is for main viewcontroller(rootviewcontroller) and second one is sw_rear which is for sidebar.I am successfully able to implement it using this tutorial,but...

SWRevealViewController rightRevealToggle not working with UIButton in storyboard

ios,xcode,uibutton,storyboard,swrevealviewcontroller
In my xcode project, I want a UIButton to open a right slide-out menu using SWRevealViewController but it isn't working. Any help? He's the code in my view didLoad for the UIButton: SWRevealViewController *revealViewController = self.revealViewController; if ( revealViewController ) { [sidebarButton addTarget:revealViewController action:@selector(rightRevealToggle:) forControlEvents:UIControlEventTouchUpInside]; [self.view addGestureRecognizer:self.revealViewController.panGestureRecognizer]; } And here...

Cannot edit search bar width and x y coordinate in `UITableViewController`

ios,uitableview,swift,uisearchbar,swrevealviewcontroller
I am useing the swreveal to do the slide menu which i want to add search bar in it. However, the search bar has been covered by the parent view. slide_areaWidth = self.revealViewController().rightViewRevealWidth searchBar = UISearchBar(frame: CGRectMake(300, 0, 60, 64)) var searchDisplayController: UISearchDisplayController = UISearchDisplayController() searchDisplayController = UISearchDisplayController(searchBar: searchBar, contentsController:...

How to change UILabel text color on Custom UITable cell?

objective-c,uilabel,tableviewcell,swrevealviewcontroller,viewwithtag
I've created a table view controller on storyboard. I want to change UILabel text color to green when i clicked on the selected row. I'm trying something like this, but it's not working: - (void)viewDidLoad { [super viewDidLoad]; menuItems = @[@"home", @"stamp", @"scanner", @"settings"]; } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath...

ios SWRevealViewController reveal push segue animation

ios,animation,sidebar,pushviewcontroller,swrevealviewcontroller
I'm using SWRevealViewController(the updated version) to make a slide-out sidebar menu app, connecting different rear view controllers (based on different sidebar cell tapped) by SWRevealViewControllerSeguePushController class segue. every time I tap a cell which is different from the current one the sidebar becomes fully reveal then the new rear view...

Swipeout Menu not working while using SWReveal Library

ios,swift,swrevealviewcontroller
Toggle not working in swipeMenu...when using SWRevealViewController library.. ihave been following these tutorial http://www.appcoda.com/sidebar-menu-swift/ Here is the project : https://drive.google.com/file/d/0B6dTvD1JbkgBUmJ3SmNYeFdvOHM/view?usp=sharing...

iOS: Go back to entry point view controller which is not part of navigation controller

ios,uinavigationcontroller,swrevealviewcontroller
I have a login view controller which is outside my navigation controller. When a user logs out, I want them to be back to the login view controller. I am using SWRevealViewController and Storyboards. User Flow: -> Login View Controller -> SWRevealViewController-> UINavigationController...

iOS: SWRevealViewController opening WebView control without Navigation bar

ios,objective-c,swrevealviewcontroller
The app has a navigation bar that is included in all the scenes within the app. SWRevealViewController has been used to create a slide out menu, also appearing in all scenes. It contains a tableview that initiates the segues to other scenes. Two of the links in this menu segue...