iOS:fix getLocationOnScreen
This commit is contained in:
parent
4c51a3c891
commit
380673ef03
@ -393,7 +393,7 @@ - (NSNumber *)getY {
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (NSDictionary *)getLocationOnScreen {
|
- (NSDictionary *)getLocationOnScreen {
|
||||||
CGPoint point = [self.view convertPoint:CGPointMake(0, 0) toView:[UIApplication sharedApplication].windows.lastObject];
|
CGPoint point = [self.view convertPoint:CGPointMake(0, 0) toView:[UIApplication sharedApplication].keyWindow];
|
||||||
return @{@"x": @(point.x), @"y": @(point.y)};
|
return @{@"x": @(point.x), @"y": @(point.y)};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user