@@ -29,6 +29,7 @@ of this software and associated documentation files (the "Software"), to deal
2929#include " platform/ios/RenderHostView-ios.h"
3030#include " platform/ios/DirectorCaller-ios.h"
3131#include " platform/ios/RenderViewImpl-ios.h"
32+ #include " platform/ios/AxmolViewController.h"
3233#include " platform/Device.h"
3334#include " base/Touch.h"
3435#include " base/Director.h"
@@ -147,8 +148,6 @@ static CGSize computeLogicalScreenSize()
147148
148149RenderViewImpl::~RenderViewImpl ()
149150{
150- // auto eaView = (__bridge RenderHostView*) _hostViewHandle;
151- // [eaView release];
152151}
153152
154153#ifndef AX_CORE_PROFILE
@@ -224,13 +223,13 @@ static CGSize computeLogicalScreenSize()
224223void RenderViewImpl::showWindow (void * viewController)
225224{
226225 auto window = (__bridge UIWindow*)_hostWindowHandle;
227- auto controller = (__bridge UIViewController *)viewController;
226+ auto controller = (__bridge AxmolViewController *)viewController;
228227
229228#if !defined(AX_TARGET_OS_TVOS)
230229 controller.extendedLayoutIncludesOpaqueBars = YES ;
231230#endif
232- auto view = (__bridge RenderHostView*)_hostViewHandle;
233- controller.view = view ;
231+
232+ controller.hostView = (__bridge UIView*)_hostViewHandle ;
234233
235234 // Set RootViewController to window
236235 if ([[UIDevice currentDevice ].systemVersion floatValue ] < 6.0 )
0 commit comments