小编Bja*_*ard的帖子

选择具有与rowHeight不同的estimatedHeight的项目时,iOS8中的UITableView错误

我正在开发一个iOS7和iOS8项目.我在iOS8上遇到了这个错误,在选择项目时tableview将"跳转".

只有当设置了估计高度并且它与行高不同时,才会出现此错误.

这是iOS8和iOS7中两个相同代码的GIF.首款iOS8:

iOS8中的TableView

现在在iOS7中:

iOS7中的TableView

我已经制作了一个示例项目,显示了这里的错误:https://github.com/bjarkehs/TableViewiOS8Bug

我不确定我是否只是遗漏了一些东西,但是我仍然坚持这个问题并且我无法找到任何相关内容.

这是我的tableView方法:

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return 3;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    if (section == 1) {
        return 30;
    }
    return 20;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell"];
    if (cell == nil) {
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"cell"];
    }

    cell.textLabel.text = [NSString stringWithFormat:@"%@ %ld", @"Wat", indexPath.row];
    return cell;
}

- (CGFloat)tableView:(UITableView *)tableView estimatedHeightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return 45.f;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath …
Run Code Online (Sandbox Code Playgroud)

objective-c uitableview ios ios8

7
推荐指数
1
解决办法
643
查看次数

AR Drone 2和ffserver + ffmpeg流媒体

我希望能够将AR Drone 2的视频源从Debian Server重新映射到Flash.

我知道AR Drone使用编解码器p264.在视频编解码器方面,我完全是绿色的,所以我不知道什么适合我想实现的目标?

与使用ffplay直接连接到AR Drone相比,我能够从AR Drone流式传输视频,但延迟非常高且质量极低.

我目前在标准的ffserver.conf中使用.swf示例:

<Stream test.swf>
Feed feed1.ffm
Format swf
VideoFrameRate 30
VideoIntraOnly
NoAudio
</Stream>
Run Code Online (Sandbox Code Playgroud)

并且.ffm Feed的设置如下:

<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 17K
ACL allow 127.0.0.1
NoAudio
</Feed>
Run Code Online (Sandbox Code Playgroud)

我用来为ffserver feed提供输入的命令:

ffmpeg -i http://192.168.1.1:5555 http://localhost:8090/feed1.ffm
Run Code Online (Sandbox Code Playgroud)

我如何才能实现更低的延迟和更高的质量,因为流目前无法获取?

flash streaming ffmpeg codec ar.drone

3
推荐指数
1
解决办法
1927
查看次数

标签 统计

ar.drone ×1

codec ×1

ffmpeg ×1

flash ×1

ios ×1

ios8 ×1

objective-c ×1

streaming ×1

uitableview ×1