Skip to content

Commit

Permalink
fix: some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Alyssa.Yu authored and Alyssa.Yu committed Sep 6, 2023
1 parent a735137 commit 9d24c78
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/Amplitude/UIViewController+AMPScreen.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -167,7 +167,8 @@ - (void)amp_viewWillAppear:(BOOL)animated {
NSLog(@"**********view will appear**********");
//NSLog(@"Screen changed!");

*/
NSString *name = @"test123";
printViewHierarchy(self.view, 0);

/*
Expand Down

0 comments on commit 9d24c78

Please sign in to comment.