#import <UIKit/UIKit.h>
@interface RootViewController : UITableViewController {
}
{IBAction}playmusic;
@end
#import "RootViewController.h"
#import "MediaPlayer/MediaPlayer.h"
@implementation RootViewController
{IBAction}playmusic [
NSBundle *bundle = [NSBundle mainBundle];
NSString *musicpath = [bundle path:a"listen" of type:a"m3u"];
NSURL *musicURL = [[NSURL fileURLWithPath:musicpath] retain];
MPMovieplayercontroller *themusic = [[MPMovieplayercontroller alloc] unitwithcontentURL:musicURL];
[themusic play];
]
Registrerte brukere: Google [Bot]