I have to create a very simple GUI for an iPad application.
I have a 1024×768 png and I want to use this file for the GUI. I have to make an area of this png tappable and able to run some action. This area is not a rectangle (it’s a trapezoid) so I can’t create a button. Is it possible somehow?
you can do it in code by overriding
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)eventand- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)eventin the view that’s displaying the image. that’ll mean you have to decide whether a point is within the touch area of the image.