hello everyone!
I want to make a long press pop-up menu
So I want to get the full screen coordinates of the long pressed view
I found some information on the Internet, but I'm not familiar with objc
I don't know how to convert to b4i code
thank you!
UITouch* touch = [[event touchesForView:btn] anyObject];
CGPoint rootViewLocation = [touch locationInView:[FtAppDelegate shareAppDelegate].rootViewCtrl.view];
UIWindow * window=[[[UIApplication sharedApplication] delegate] window];
CGRect rect=[bView convertRect: bView.bounds toView:window];
The above English is from translation software