Friday, 24 October 2008

IPhone MoviePlayer Sample Code 3

MyImageView

Interface

Imports:
  • #import "MyViewController.h"
Instance variables:
  • mViewController
Instance methods:
  • -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;

Implementation

-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
Receives a set with the touches and the event. Gets a UITouch from the set and check it's phase. If it's UITouchPhaseBegan, play the movie.

1 comment:

sans said...

Is it possible to have a hyperlink over a video when it plays?.

Also could you share you complete source code for one of the examples.