MyOverlayView
Interface
Instance methods:- -(void)awakeFromNib;
- -(void)dealloc;
- -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
Implementation
Imports:#import "MyViewController.h"
Rotate the overlay 90 degrees clockwise then translate it to the centre of the screen. This will match the orientation the movie player uses, full-screen landscape mode.
-(void)dealloc
Call super
dealloc
.-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
Similar to the
MyImageView
implementation. This creates a OverlayViewTouchNotification
and fires it off.
No comments:
Post a Comment