I have created two ViewController in objective-c designed on storyboard. But my issue is that, i want to show like that (i have attached screenshot).
Anybody can help me..
You can do this by SWRevealViewController as menu view from https://github.com/John-Lluch/SWRevealViewController
Or take one view on firstViewController
Related
I'm trying to use a navigation controller for an identification process in my swift code but each time I click on a button that leads to it, it shows the following black screen:
Here is my storyboard if this can helps, there is no warning and no error in the code (using a drag and drop segue or a programmatically one leads to the same black screen)
Probably the segue you picked: mode & transition.
Are you certain you only have a single segue? It is possible to have overlapping segues, which do not show up clearly in Interface Builder.
Edit
Is there a way we can see all our segues?
Open the Storyboard in its new window
Show Document Outline (leftmost pane)
Show Attribute Inspector (rightmost pane)
Select each View Controller Scene in the Document Outline. The Segues are listed at the bottom. You can inspect Identifier and Segue in the Attribute Inspector.
Sounds, I was doing the wrong way (drag a nav controller, delete the table view, add a new View controller and make the segue), but now if I create a view, and then I embed it in a navigation controller it sounds it works ! Anyway, thanks a lot for your help, this definitely helps me !
I got this when I assigned a custom view to self.view in viewDidLoad:.
self.view = self.mapView
Adding mapView as a subview of self.view solved this.
[I see you've created a custom ViewController, are you sure it's a subclass of ViewController?
You can see which subclass is it off after the ":" in the class declaration!
Well I wish there was some tutorial anywhere or any of the O'Reily Cookbooks would explain this but everyone only ever talks about using UITabBarController.
What I need in my app however is a custom view (basic UIViewController) with a NavigationBar (just for the title bar and a 'Done' button) and a TabBar in it.
The question is: How do I integrate the TabBar and connect views to each bar button (and add more bar buttons)? Can this only be done programmatically or is it possible in Storyboard? And which class needs to be the TabBarDelegate (I suppose my custom UIViewController)?
Does anyone know of a good guide for this or provide me with some hints?
Thanks.
UPDATE:
I decided to simply check in the TabBarDelegate for the tabBar.selectedItem.tag and instantiate a sub view accordingly from the storyboard and add it into a ContainerView that is sandwiched between my nav bar and the tab bar at the bottom. This works so far (although I'm not sure if there's not a better approach) but now I'm facing a different problem:
When a sub view is loaded into the ContainerView the whole tab bar disappears. Does somebody know why this happens?
It is very easy to crate Tab Bar Controller app with Storyboard. Apple even provides a snippet :) When creating a new project, just select iOS -> Application -> Tabbed Application.
Also, here is a pretty good tutorial: https://www.youtube.com/watch?v=RhsHtd6rAiQ.
Solved the original issue myself by creating a Xib with UIViewController in it and place a UITabBar and a UIView as container for subviews. Then load the xib with NSBundle.mainBundle().loadNibNamed() and create Xibs for the sub views that should be loaded and load these with loadNibNamed() and add them with viewContainer.addSubview().
I want to create a custom UISplitViewController for iPad. It is similar to the Facebook iPad version where there is a viewcontroller and a side table view controller, where the table view is the chat group in facebook NOT the Favorites/Group hidden section.
I want to replicate this:
2x version here: http://i.imgur.com/0WI5yWo.png
I would have a UINavigationViewController that has a navigtionItem left side button, a Title, and a right side searchbar. In it's left viewController it will have a viewcontroller that has a mapview and a tableview underneath it. The right viewcontroller will be a tableViewController. There is also a UISegmentedControl above both these viewcontrollers. Anyone have any ideas on how to go about this? Any help is appreciated. Thanks!
Things I have done:
I have tried using the stock UISplitViewController but I cannot seem to add a UINavigationController to it nor customize it how I want to.
I think my best option is to have a UIViewController that has 2 ContainerViews. The only problem I can see would be that UISegmentedController as well as how I will have 2 tableviews in one file.
The title won't clear the actual problem. Let me explain clearly.
I have a tabbarcontoller in the viewcontroller which is the main view controller of the single view application project.
I added Navigationcontrollers to the tabbarcontroller. So that I can navigate(push/pop) from one viewcontroller to other.
I added a subview to the mainview of a single navigation controller.
When I click the button near to the tabbar, it doesn't get clicked and the tabbaritem button gets access and shows that tab.
The below image will explain well,
If I click the show button, it opens the receipts tab.
How to reduce the click access boundary of the tabbar in tabbarcontroller?
I can't get any solution regarding this.
Frankly, i've written a bunch of applications which have controls near the tab bar and i've never encountered such behaviour.
Check if you have custom tabbar controller with custom frame.
Also try to use Reveal App (http://revealapp.com/) to check the buttons' frame at runtime, it will help you to understand what's going on. They have trial version as i remember.
Hope it will help :)
Choose the custom button for this and add in tabbar.
I'm trying to create a UISplitView like in facebook iphone by using two UIViews on top of one another (iOS 4.2). I've a UINavigationController and when the user clicks on the leftbar button in the UINavigation controller the Top View should slide away and leave the second view. It works fine but the UINavigationController remains in the same position and I would like to slide it also with the TopView so that there is no UINavigationController on the BottomView. Is this possible? I also referred to similar questions in stackoverflow but couldn't find anything related to this particular problem. Appreciate your suggestions on this regard a lot. Thanks in advance.
Have a look at JTRevealSidebarDemo. That is what exactly what you want.
Please let me know if you anything else than this.