From 9d24c78151ab56e8c5644e4a6e1dbb8201243b17 Mon Sep 17 00:00:00 2001 From: "Alyssa.Yu" Date: Wed, 6 Sep 2023 16:44:17 -0700 Subject: [PATCH] fix: some fixes --- Sources/Amplitude/UIViewController+AMPScreen.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Sources/Amplitude/UIViewController+AMPScreen.m b/Sources/Amplitude/UIViewController+AMPScreen.m index eb5fdf0d..fd3eb10b 100644 --- a/Sources/Amplitude/UIViewController+AMPScreen.m +++ b/Sources/Amplitude/UIViewController+AMPScreen.m @@ -149,7 +149,7 @@ + (UIViewController *)amp_nextRootViewController:(UIViewController *)rootViewCon - (void)amp_viewWillAppear:(BOOL)animated { AMPLITUDE_LOG(@"self is %@", self); - UIViewController *top = [[self class] amp_rootViewControllerFromView:self.view]; + /*UIViewController *top = [[self class] amp_rootViewControllerFromView:self.view]; if (!top) { AMPLITUDE_LOG(@"Failed to infer screen"); return; @@ -167,7 +167,8 @@ - (void)amp_viewWillAppear:(BOOL)animated { NSLog(@"**********view will appear**********"); //NSLog(@"Screen changed!"); - +*/ + NSString *name = @"test123"; printViewHierarchy(self.view, 0); /*