I'm simply trying to get code that creates a slide up view using presentModalViewController and I haven't been able to get it to work at all. I currently have this:
I also have a UIViewController class file with the name SlideUpViewController.h/.m with code that just simply shows an alert box when the view is loaded to see if it is loading. That alert is not showing up. I also have a SlideUpViewController.xib file...
I should also note that I have a button on the TestViewController file that I am using to execute the aboutShow code. Could that fact that that button is on a separate view controller be the issue? It is in that TestViewController class but calls aboutShow from the TestAppDelegate files
I should also note that I have a button on the TestViewController file that I am using to execute the aboutShow code. Could that fact that that button is on a separate view controller be the issue? It is in that TestViewController class but calls aboutShow from the TestAppDelegate files
Have you placed a view controller in your mainWindow.xib file with it's owner being your slide up view controller? You also have to drag the outlet of your appDelegate object in Interface Builder to your view controller. If you haven't done that, that code will never work.
The object that you will be performing the presentModalViewController on (I'm assuming) is not the slideUpViewController because I don't think that you want to present the slideUpViewController on top of itself in a modalView. Instead, I am assuming that you want the slideUpViewController to appear on top of the viewController. Also, there is no need to allocate another slideUpViewController instance.
Also, how are you building this application? Are there different view.xib files for every view, or is everything in the mainWindow.xib? Sometimes, I find that it is easier, at least with modalViewControllers, just to create the instance of the view you want to "slide up" inside the view.xib file of the view that will be presenting the modalViewController, bypassing the appDelegate entirely.
The object that you will be performing the presentModalViewController on (I'm assuming) is not the slideUpViewController because I don't think that you want to present the slideUpViewController on top of itself in a modalView. Instead, I am assuming that you want the slideUpViewController to appear on top of the viewController. Also, there is no need to allocate another slideUpViewController instance.
Also, how are you building this application? Are there different view.xib files for every view, or is everything in the mainWindow.xib? Sometimes, I find that it is easier, at least with modalViewControllers, just to create the instance of the view you want to "slide up" inside the view.xib file of the view that will be presenting the modalViewController, bypassing the appDelegate entirely.
Thanks for the help, you were correct in assuming that. Currently I have three separate .xib files, MainView, SlideUpViewController, and TestViewController. MainView loads TestViewController on startup, and I want the SlideUpViewController to slide up over that one.
The only issue I have now is that I don't know what to connect to what. The App Delegate won't drag on to anything relating to SlideUpViewController...
Is there an easier way to do this where I can just create a button on any view and have it slide up another view no matter what view it is currently on (I think this is what you meant by bypassing appdelegate?)