popToViewController is method in UINavigationController class that is part of iOS SDK.
In my Application what i'm doing is: rootViewController -> pushViewController -> pushViewController -> pushViewController -> presentModalViewController …
ios objective-c uinavigationcontroller presentmodalviewcontroller poptoviewcontroller