# Switch/Open native view on top of hybrid webview in iOS

**URL:** <https://community.auth0.com/t/switch-open-native-view-on-top-of-hybrid-webview-in-ios/7545>\
**Category:** Get Help\
**Tags:** phonegap, cordova, objective-c, ios, native\
**Created:** [July 17, 2017, 7:52pm UTC](https://community.auth0.com/t/switch-open-native-view-on-top-of-hybrid-webview-in-ios/7545 "2017-07-17T19:52:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajay.verma1953](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@ajay.verma1953](https://community.auth0.com/u/ajay.verma1953)\
**Post date:** [July 17, 2017, 7:52pm UTC](https://community.auth0.com/t/switch-open-native-view-on-top-of-hybrid-webview-in-ios/7545/1 "2017-07-17T19:52:23Z")

</div>

I’ve created a sample of cordova app and downloaded native tokbox sample app. I’ve carefully integrated the native tokbox sample in cordova app. As both these samples are separate so they work one at a time.  
In “AppDelegate.m” file, I have this function:

- (BOOL)application:(UIApplication\*)application didFinishLaunchingWithOptions:(NSDictionary\*)launchOptions  
{  
self.viewController = [MainViewController alloc] init]; //line1  
return [super application:application didFinishLaunchingWithOptions:launchOptions]; //line2  
//return YES; //line3  
}  
which automatically created when we create a cordova app. Now, when I run this above code I can see cordova app running. But when I uncomment the line3 and comment the line1 and line2 then I can see the tokbox sample view.  
Now, I want to see this tokbox sample view on top of my cordova view on some other function. As all the functions are already been created in tokbox sample so I just want to call that file so that the view automatically changes or comes on top of previous view and the functions run from that file.  
In Android, I have done this by using Intent to move from one file to another.  
If anyone can tell me the code to achieve this it’ll be a great help.

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [July 17, 2017, 9:43pm UTC](https://community.auth0.com/t/switch-open-native-view-on-top-of-hybrid-webview-in-ios/7545/2 "2017-07-17T21:43:35Z")

</div>

This is a community site focused on providing assistance to developers making use of the Auth0 service; there’s some level of technical questions that focus on specific technologies or platforms that will still be answered because they are somehow associated with the integration of Auth0 into client applications.

However, unless I’m missing something your question has no relation to the scope mentioned above. If I’m mistaken then please clarify your situation, otherwise I would recommend you to post those sort of question in more general Q&A platforms, in particular, consider posting it in StackOverflow. Using StackOverflow will also reach an wider audience.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:55am UTC](https://community.auth0.com/t/switch-open-native-view-on-top-of-hybrid-webview-in-ios/7545/3 "2018-03-02T05:55:26Z")

</div>


