【发布时间】:2010-04-20 19:56:30
【问题描述】:
早上好, 在尝试将缩略图添加到画廊视图时,我一直在四处浏览,试图找出我做错了什么,但无法弄清楚它到底是什么。 我正在尝试使用以下代码将缩略图粘贴到空白视图上:
UIImageView *any = [[UIImageView alloc] initWithFrame:CGRectMake(a,b,70,60)];
any.image = [UIImage imageNamed:selectedThumbPath];
any.tag = 0;
[self.view addSubview:any];
在上面的例子中:
a = 165
b = 150
selectedThumbPath = the full path to a thumbnail ie. /users/Cleverbum/library etc
我正在拔头发,没有错误消息,也没有任何线索说明它为什么不画任何东西。更糟糕的是,这是我唯一没有更改的代码部分之一!
【问题讨论】:
标签: iphone uiimageview image-gallery