当我推送 UIBotton 时,我想从另一个视图库调用 FrameMarkersAppdelegate。我能怎么做?
FrameMarkersAppdelegate.mm
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
CGRect screenBounds = [[UIScreen mainScreen] bounds];
window = [[UIWindow alloc] initWithFrame: screenBounds];
[self setupSplashContinuation];
[QCARutils getInstance].targetType = TYPE_FRAMEMARKERS;
// Add the EAGLView and the overlay view to the window
arParentViewController = [[ARParentViewController alloc] init];
arParentViewController.arViewRect = screenBounds;
[window insertSubview:arParentViewController.view atIndex:0];
[window makeKeyAndVisible];
return YES;
}
视图控制器.m
-(IBAction)displaySelection:(id)sender
{
// How can I start FrameMarkersAppDelegate here?
}