相关疑难解决方法(0)

在按钮操作上传递参数:@selector

我想将动态生成按钮中的电影网址传递给MediaPlayer:

[button addTarget:self action:@selector(buttonPressed:) withObject:[speakers_mp4 objectAtIndex:[indexPath row]] forControlEvents:UIControlEventTouchUpInside];
Run Code Online (Sandbox Code Playgroud)

action:@selector() withObject:不起作用?

还有其他解决方案吗?

感谢帮助!

iphone parameters action selector media-player

49
推荐指数
4
解决办法
11万
查看次数

标签 统计

action ×1

iphone ×1

media-player ×1

parameters ×1

selector ×1