Access to UINavigationController

13 views
Skip to first unread message

Hasni Faiçal

unread,
Feb 25, 2021, 12:33:50 PM2/25/21
to CodenameOne Discussions
I am using a Library that requires me to use a UINavigationController to push a controller from this library, It will not work if i present it from A UIViewController.

Do you have any Idea how to make the rootViewController a UINavigationController instead of UIViewController on the generated Xcode projet.

Shai Almog

unread,
Feb 26, 2021, 1:08:48 AM2/26/21
to CodenameOne Discussions
You can use [CodenameOne_GLViewController instance] which returns an instance of our UIView controller. Notice you will need to add the following line to the top of the file:
#import "CodenameOne_GLViewController.h"
Reply all
Reply to author
Forward
0 new messages