If your app is running in background.In that case.
When app is opened from push notification below method call.
-(void) application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
Using userInfo you can set your way which view to push. Suppose I wan't to go firstView that is depend on pushNotification In that condition I will add a value in APNS payload like view:firstView(that may be your class name) and using this value from userinfo(NSDictionary) you can navigate or push to particular view. In that condition your APNS payload will be like this
{"aps":{"alert":"Your message","sound":"value","badge":1},"ViewName":"value"}