|
|||
|
|||
Create a Single View Application |
|||
Add MediaPlayer.Framework | |||
File > Add Files to | |||
Create a new View Controller. Add a button that will start the movie. |
|||
BWViewController.h
#import <UIKit/UIKit.h>
Make a connection between your button and the ViewController.h file Control click from the button to the ViewController.h file and drag to the line after @interface NMViewController : UIViewController <UIPickerViewDataSource, UIPickerViewDelegate> Make the Connection an "A ction" name the button and make it type "id" and keep it "Touch up inside" |
|||
// NMViewController.m
#import "NMViewController.h" @interface NMViewController () @end
|
|||
// NMViewController.m - (IBAction)PlayButton:(id)sender { NSURL *url = [NSURL fileURLWithPath:stringPath];
|
|||
Stop Button Code - (IBAction)Stop:(id)sender { |
|||
|
|||
|
|||
|
|||
|
|||