use*_*885 0 iphone uitableview uiimageview facebook-graph-api ios
我正在实现一个应用程序,它有2个图像,我需要在同一个tableviewcell上显示.
但是由于应用程序的设置方式,我无法将tableviewcell子类化为什么.所以我想以编程方式创建一个图像视图,然后添加到cell.contentview,但它只是出错了.任何帮助将不胜感激.
UIImageView *imageView = [[UIImageView alloc] initWithImage:image];
[imageView setFrame:CGRectMake(x,y,width,height)]; //note this is in the cell coordinate system
[cell.contentView addSubview:imageView];
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
145 次 |
最近记录: |