小编obi*_*ter的帖子

NSInvalidArgumentException"无法识别的选择器发送到实例"(使用MPMoviePlayerController)

好吧,我在RootViewController中有一个带有DetailViewController的TableView,用于显示单个记录的信息.在详细信息页面中,我必须播放多媒体文件,并且我正在使用框架MediaPlayer,根据本指南:http: //www.techotopia.com/index.php/Video_Playback_from_within_an_iOS_4_iPhone_Application

看起来一切都好,但是当我点击播放按钮时我有这个错误:

 -[DetailsViewController playmovie]: unrecognized selector sent to instance 0x9117f60

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[DetailsViewController playmovie]: unrecognized selector sent to instance 0x9117f60'
Run Code Online (Sandbox Code Playgroud)

这些是我的文件:

在AppDelegate中我使用这个导航控制器:

[...]

// Create a table view controller
    RootViewController *rootViewController = [[RootViewController alloc]
                                              initWithStyle:UITableViewStylePlain];

    rootViewController.managedObjectContext = context;
    rootViewController.entityName = @"Porti";


    UINavigationController *aNavigationController = [[UINavigationController alloc]
                                                     initWithRootViewController:rootViewController];

    self.navigationController = aNavigationController;


    UIBarButtonItem *homeButton;
    homeButton = [[[UIBarButtonItem alloc] initWithTitle:@"              Inizio              " style:UIBarButtonItemStyleBordered target:self action:@selector(home)] autorelease];

    UIBarButtonItem *barButton;
    barButton = [[[UIBarButtonItem alloc] …
Run Code Online (Sandbox Code Playgroud)

mpmovieplayercontroller navigationcontroller ios unrecognized-selector

4
推荐指数
1
解决办法
2万
查看次数

uitableview +导航控制器从所选元素中设置标题

我有一个UINnavigationController处理导航的UITableView.

当我从表格中选择一行时,我需要在UINavigationController标题中显示上一个菜单中的所选项目.

xml填充行的外部读取单元格的标签UITableView.

如何在标题上显示我的选择UINavigationBar

我使用self.title命令设置了静态标题,但它不符合我的需要

xcode objective-c uitableview uinavigationcontroller ios

2
推荐指数
2
解决办法
6831
查看次数