如何在自动调整后获得帧位置?

时间:2015-05-29 07:27:17

标签: ios uitableview uiimageview autoresize custom-cell

我有imageView,我想在imageView自动调整后获取x,y,宽度和高度。每次都返回原始帧。 我的imageView位于tableView自定义单元格中,这些行无法正常工作。

-(void)viewDidLayoutSubviews{
    GameCell *cell=[self.tableView dequeueReusableCellWithIdentifier:@"gameCell"];

    frameImg1=cell.image1.frame;
    frameImg2=cell.image1.bounds;
}

1 个答案:

答案 0 :(得分:0)

请在自动调整后使用-(void)viewDidAppear获取帧大小。

相关问题