(Objective-C) Open view controller

194 Views Asked by At

In my project, I have a Table View Controller with class NieuwsViewController. I want this VC to be opened when the app is opened through a push message.

I assume this has to be done in AppDelegate.m in 'application didFinishLaunchingWithOptions' or 'didReceiveRemoteNotification', but then what?

1

There are 1 best solutions below

1
On

You can take a look at this to handle URL scheme.

You need to instantiate your UIViewController in handleOpenURL (with instantiateViewControllerWithIdentifier if you use storyboard for example) and then you will be able to present it (or to push it depending what you want).