【发布时间】:2011-04-12 14:40:36
【问题描述】:
我想将动态生成的按钮中的电影 url 传递给 MediaPlayer:
[button addTarget:self action:@selector(buttonPressed:) withObject:[speakers_mp4 objectAtIndex:[indexPath row]] forControlEvents:UIControlEventTouchUpInside];
但是action:@selector() withObject: 不起作用?
还有其他解决办法吗?
感谢您的帮助!
【问题讨论】:
-
哟!得到了更好的解决方案。只要确保你注意到。
标签: iphone parameters action selector media-player