Tag: 收音机

如何在表格视图中一次select单选button

我在表视图单元格中有一个单选button。 这是我的单选button -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"myCell"]; if(cell == nil) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"myCell"]; cell.selectionStyle = UITableViewCellSelectionStyleNone; UIButton *newRadioButton = [UIButton buttonWithType:UIButtonTypeCustom]; newRadioButton.frame = CGRectMake(30, 0, 15, 14.5); [newRadioButton setImage:[UIImage imageNamed:@"unselect"] forState:UIControlStateNormal]; [newRadioButton setImage:[UIImage imageNamed:@"select"] forState:UIControlStateSelected]; cell.accessoryView = newRadioButton; if ([indexPath isEqual:selectedIndex]) { newRadioButton.selected = YES; […]

使用AIR在iOS上stream式传输AAC +(在FLV内部)

对于stream式广播电台,我有一个AAC +audiostream,在FLV容器内部,通过HTTP传送。 示例url是http://3023.live.streamtheworld.com/ALTROCK_S01A_AAC 。 我写了一个简单的AIR应用程序(使用最新的AIR和Flex SDK)来播放这个stream,它在PC和Android上运行良好,但是在部署到iOS模拟器或设备时不会播放任何内容(即字节是加载,但没有声音)。 这类似于可以在Android中播放FLV AACstream ,但在iOS中播放 。 我想在这个场景中使用AIR,因为我需要在FLV中听取提示点 – 如果您在networking浏览器中播放Flash,这很容易,所以AIR看起来是自然select。 我也看了http://code.google.com/p/haxecast/和https://code.google.com/p/project-thunder-snow/,但他们似乎都使用相同的基本思想(parsing在“数据生成模式”中使用Netstream的FLV,并将AAC +数据提供给Video对象),所以它们都在iOS上面。 我也遇到这个post ,似乎可能是相关的,虽然它不是相同的情况(例如,它不是FLV)。 iOS上的AIR应该支持这种情况,即通过HTTPstream式传输AAC + / FLVaudio? 编辑 : 这篇文章也似乎遇到了同样的障碍 – 所以很多人都在问这种情况。 来自Adobe的任何人都有什么见解?