didSelectRowAtIndexPath调整iOS7上的imageview大小

时间:2014-04-24 00:50:35

标签: ios7 uitableview

如果cell.selectionStyle与UITableViewCellSelectionStyleNone不同,则会发生这种情况。

        //FrameFiew

    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
    {
    ...
         imageView = [[FXImageView alloc] initWithFrame:CGRectMake(10, 10, 50.0f, 50.0f)];
                            imageView.contentMode = UIViewContentModeScaleAspectFit;
                            imageView.asynchronous = YES;
                            imageView.cornerRadius = 5.0f;
                            imageView.tag = indexPath.row;
                      //cell.selectionStyle = UITableViewCellSelectionStyleNone;
    ...
    }

enter image description here

1 个答案:

答案 0 :(得分:0)

这是FXImageView框架上的一个错误,我只是改为UIImageView,现在它可以工作。