我有一个 tableView 显示歌曲列表,当我点击它播放的任何一首时。
-(void) PlaySelectedSong:(id) sender{
Song *aSong=[aCategory.Items objectAtIndex:appDelegate.selectedSong];
NSString *content1=[[NSString alloc] initWithFormat:@"http://192.168.50.108:8888/%@",[aSong.Link stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]];
NSLog(content1);
NSURL *url=[NSURL URLWithString:content1];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
//Load the request in the UIWebView.
webView.delegate=self;
[webView loadRequest:requestObj];
}
这就是它的播放方式。问题是在播放时显示歌曲的 URL。我打算在它上面添加一个标签。这样我就可以将标签文本设置为歌曲名称。
我如何添加标签来做同样的事情。有谁知道。?需要帮忙。
谢谢,世斌