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 ffd15a7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 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 @@ -165,9 +165,10 @@ - (void)amp_viewWillAppear:(BOOL)animated {
}
}
NSLog(@"**********view will appear**********");
//NSLog(@"Screen changed!");

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

/*
Expand Down

0 comments on commit ffd15a7

Please sign in to comment.