First thing first; your app is crashing because you are having a call on a nill
variable: maintenance. You need to ensure that the loading of your nib file is happening correctly.
There are different reasons this is not happening; check:
- You are using the correct name for the xib and the file exist.
- You have defined correctly the xib file's "File owner": your view controller.
Second thing; i think what you want is to present modally your second view controller which can be accomplished by making a call to the presenting view controller with the presentViewController:animated:completion:
method.