I'm using page view controller with a button on top right. on click of it it will show pop over view which has table view. (Table view has list of URL's)
On selecting a cell, i want to push a view controller which has web view that shows the URL in the cell.
Upto showing pop over its fine. I'm not able to find a solution on how to push another view controller.
Any solution for this?
I added a protocol in my table view controller class and implementing the delegate methods in Root View controller. When the cell is clicked I am calling appropriate delegate method which instantiates the next view controller and pushes it from navigation controller.
Related
I have only one view controller with collection view in page view controller and having search button on the navigation bar when i click on search bar and did search then the result is shown properly means child view controller is updating but when i slide it on left it also showing me the original content of collection view also. how can i remove that previous view controller and show only result child view controller.
Then you dont want a page view controller, A pageview controller will reuse the single child view controller each time the swipe is detected. In your page view controller delegate methods properly check the values from which it is being loaded is the array being reduced permanently or are u using a mutable copy of the array each time you reload the page view controller contents.
I answered a possible solution to a similar question. Maybe it will help you.
UIPageViewController keeping previous ViewController on the Background of the view
I have a master detail class that has a navigation view controller. I have created another view controller which I want to use to load the navigation view controller via a button. I have added a view controller and have linked a button to the navigation view controller however when i test to see if the new view loads, I receive an error on the main.m
What am i doing wrong?
I think you need not take another navigation controller if you have navigation controller for the view controller having button and you can directly take view controller which you want (UITableviewController or UIViewController). Give connection from your button to that view controller
I am developing an iPad application using storyboard. In my application I have connected one modal view controller from first view controller using segue modal presentation for fetching some data. Modal view controller is closed by clicking on the cancel button in the modal view. Cancel button and first view controller are connected by using a modal segue. In first view controller I have a table view and I added some values to the tableview using a button. But my problem is if go to modal view then return back to my first view controller the table view in the first view controller is reloaded and I lost the result in the tableview. How do I prevent the data reload in the table view when the modal view is dismissed on pressing cancel.
These two points may solve your issue
Don't give [table reload] in ViewWillAppear or ViewDidAppear
Make sure viewDidLoad is not getting called when view is returned from modal View
I'm wanting to create a UI where I have a popover that comes from a button that and contains a split view UI with two table view controllers side by side.
The storyboard I have now has a normal page with a button, the button has a popover segue to a split view controller.
The split view controller has a master relationship to a navigation controller which has a root view controller of a table view controller.
The split view controller has a detail view controller to another navigation controller which again has a root view controller of a table view controller.
When I launch the pop up it only ever displays the master controller, not the two side by side.
UISplitViewCpntroller can only be the root view of an app - as such, you cannot put them in a UIPopover or any other non-root view.
You would have to create your own UISplitViewCpntroller type view (or look for some open source code).
I have a split view controller that has a table on the left hand side, and a empty detail view controller on the right had side. For iphone, I know its possible to push a view controller and a nib in a navigational stack. I want to know if its possible to push a view controller + nib on the detail view, after a user taps the table cell.
I tried simply pushing the view i have after a user taps to the detail view, however nothing happens.
To do this you'll need to make sure you have a UINavigationController on the detail side of your split view controller. You can set a navigation controller as the detail item within the nib that contains the split view. You can set the navigation controller as the split view delegate and use the delegate property to push views onto the stack in response to events happening on the root view side.
ya u can do that check out this example here
http://developer.apple.com/library/ios/#samplecode/MultipleDetailViews/Introduction/Intro.html
and to make navigation controller in detailview of split view check example here
http://www.cimgf.com/2010/05/24/fixing-the-uisplitviewcontroller-template/
i think it will help you
Have you tried just going to the developer.apple.com and use the standard example from Apple, which does exactly what ur saying?
Cell 1 = loads Xib1
Cell 2 = loads Xib2.
Maybe give that a go..