Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios Xcode6.1 UIImageView未正确显示_Ios_Xcode_Uiimage_Xcode6_Image Resizing - Fatal编程技术网

Ios Xcode6.1 UIImageView未正确显示

Ios Xcode6.1 UIImageView未正确显示,ios,xcode,uiimage,xcode6,image-resizing,Ios,Xcode,Uiimage,Xcode6,Image Resizing,我甚至不知道如何用谷歌搜索这个问题。我的应用程序上的图像未完全显示。我希望在320×170像素的限制范围内(或大部分限制范围内)匹配完整图像。现在我能得到的只是一个截取版本,无论我对图像约束做了什么,我似乎都无法让它工作 我尝试过谷歌提供的每一种模式和变化,我能想到的 截图: @ZombiMageCell()中的接口 看起来图像视图的框架延伸到了表视图单元格的下方。我们也这么认为。我们在更改它时遇到问题。你有什么建议或建议吗?事实上。。。如何在每个单元格中添加该条?也许是这些条遮住了图片。谢谢

我甚至不知道如何用谷歌搜索这个问题。我的应用程序上的图像未完全显示。我希望在320×170像素的限制范围内(或大部分限制范围内)匹配完整图像。现在我能得到的只是一个截取版本,无论我对图像约束做了什么,我似乎都无法让它工作

我尝试过谷歌提供的每一种模式和变化,我能想到的

  • 截图:

    @ZombiMageCell()中的接口


  • 看起来图像视图的框架延伸到了表视图单元格的下方。我们也这么认为。我们在更改它时遇到问题。你有什么建议或建议吗?事实上。。。如何在每个单元格中添加该条?也许是这些条遮住了图片。谢谢你的回复。它们是用自动图像约束实现的,嗯?我说的是似乎连接到每个单元格的条形图(带有上下箭头、标志、用户名等),您如何在每个单元格中添加该条形图?
    @property AFHTTPRequestOperation* mediumImageOperation;
    
    @end
    
    @implementation InzombImageCell
    
    - (void)prepareForReuse {
      [super prepareForReuse];
      [self.mediumImageOperation cancel];
      self.mediumImageOperation = nil;
      self.mediumImageView.image = nil;
    }
    
    - (void)initializeCell {
      // define the medium size image URL
      NSURLRequest* mediumImageRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:self.image.mediumUrl]];
    
      // set the image response serializer for fetching the image
      AFImageResponseSerializer* mediumImageResponseSerializer = [AFImageResponseSerializer serializer];
      // automatically inflates the response image for better rendering time
      [mediumImageResponseSerializer setAutomaticallyInflatesResponseImage:YES];
      // set the image scale for retina displays
      [mediumImageResponseSerializer setImageScale:0.25];
    
      // set the self object because we don't want a retain cycle
      InzombImageCell* imageCell = self;
    
      [self.progressScroller startAnimating];
      // define the medium size image request
      self.mediumImageOperation = [[AFHTTPRequestOperation alloc] initWithRequest:mediumImageRequest];
      [self.mediumImageOperation setResponseSerializer:mediumImageResponseSerializer];
      [self.mediumImageOperation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, UIImage* responseObject) {
        [imageCell.mediumImageView setImage:responseObject];
        [imageCell.progressScroller stopAnimating];
      } failure:nil];
      [self.mediumImageOperation start];
    }