Make right button visible in a slide out panel with a navigation controller - ios

I currently have a view with a navigation controller and two menu bar items, the left one causes a slide out panel to appear using SWReveal. What I want to do is add a navigation controller to the slide out panel, but make it so the right button doesn't get cut off by the upper view.
I want a button just to the left of where the hamburger button on the upper view is. I'd like to do this in Swift, if there's no way to do it in the storyboard.

I found the solution after looking at this post. Just go into SWRevealViewController.m, scroll down to the _initDefaultProperties block, and change the value of _rearViewRevealOverdraw from 60.0f to 0.0f.

Related

navigation bar not coming common to both screens

This is my slide menu in cyan color on the left and dark on the right is my actual window having the slide menu. i need a common navigation bar for both of them but i am not getting it.
I have attached my slide menu with a navigation bar "embed in" and which furthure is connected to swrevelviewcontroller. what should i do to get a single top navigation bar in a situation where the slide menu is visible and the screen also.
First go to storyboard select view controller then check properties from right side.
Then after you need to set UIBarButton(menu/back) manually in all view controller as per requirement. Might be your problem will solved.

How to design a tabbar inside a view

I need to make this view:
A view on top of the tab bar with some data. (image, name, text, ...)
tab bar has a 3 page and every page has a separate view
When user scroll up, tabbar will be scrolling top of the page and a UILable stands top of tab bar. It can be show with some fading animation (not important right now)
this is after scrolling:
I search in cocopods but I didn't find solution.
---- EDITE
I want to know how to put uitabbar inside a view. Is it possible ?
If yes, How to change just sub view of tab bar when I change tab bars!
I want to know how to put uitabbar inside a view. Is it possible ? If yes, How to change just sub view of tab bar when I change tab bars!
Yes, but I wouldn't describe the thing you are showing in your screen shot as a "tab bar". It is a UISegmentedControl. So all you have to do is respond to the user tapping on a segment of the UISegmentedControl by substituting one view for another, and that's easy to do.

Placing a share button over a uiwebview

I have an rss app that I'm working on in xcode and the articles load up in a full screen web view. I need to place a "share" button in the navigation bar but since my uiwebview is full screen it won't show up when I run the app. I even tried cropping the top of the web view lower and placing the button there but still no luck. Here is an example of what I mean:
The share button needs to be on the right side of the navigation bar but i cannot seem to figure out how that make that work.
Thanks in advance
Fist of all, your top navigation bar seems to be missing (judging by your image). Since the nav bar is missing there is no possible way that the share button will be visible. You can do this is the IB or in your code.
For your IB you can move the view controller's 'layer's' so to speak. When you place all the elements down, your VC should look something like this:
On the left hand side we can see what subviews are at the top and which ones are at the bottom.
As we can see here that the UIWebView is at the top of the list, so it'll be at the bottom of the pile. The navigation bars are further down the list so they'll be at the top of the pile. So due to this they'll go over the UIWebView.
The other way to do this is using insertSubview:aboveSubview:. Fist of all you'll add your UIWebView using addSubview: and then add the nav bar using insertSubview:aboveSubview: and finally you'll add your button the someway as you did for the nav bar, but this time you'll be adding the button above the nav bar not the web view.
My best guess is that your forgetting to add another navigation bar to the top of the screen. Hope this helps!!

Objective C - Move UITabBar

I have view with tab bar and with button to open side bar.
When the side bar is open, the tab bar stay without moving with the side bar.
The side bar is simply 2 views, one on the other in the same viewController.
Is it possible to move the tab bar with the upper view(side bar)?
With your solution you probably will need then to move all objects on the green field as you do with the tabbar. better way is to have 2 VC (scenes): one with the green field and tab bar, another one is a side menu. and animate the frame positions of the VCs (kind of left/right facebook menu animation), so all related objects will be moved including tabbar.

UITabBarController and Left Sliding Menu

I have a tabBarController in my iOS project, which is on top of every screen.
I am trying to implement a left sliding menu to it using the PKRevealController. The problem that I am facing is that the sliding menu only works (shows) when I set the tabBarController to hidden or remove from super view. Which in return hides the tab bar on the bottom, which is what I don't want.
So, I was wondering if someone could give me some pointers on how to fix this.

Resources