我想将动态生成按钮中的电影网址传递给MediaPlayer:
[button addTarget:self action:@selector(buttonPressed:) withObject:[speakers_mp4 objectAtIndex:[indexPath row]] forControlEvents:UIControlEventTouchUpInside];
Run Code Online (Sandbox Code Playgroud)
但action:@selector() withObject:不起作用?
还有其他解决方案吗?
感谢帮助!