【发布时间】:2011-08-15 22:47:59
【问题描述】:
myImageView = [[UIImageView alloc] initWithImage:[imagearray objectAtIndex:j]];
[myImageView setUserInteractionEnabled:YES];
[myImageView setTag:i];
if (i==0||i==1) {
[UIImageView beginAnimations:nil context:NULL];
[UIImageView setAnimationDuration:1.5];
[UIImageView setAnimationRepeatCount:0];
myImageView.center=CGPointMake(42+t, 220+y);
[self.view addSubview:myImageView];
NSLog(@"my imageviw tag %d",myImageView.tag);
[myImageView release];
t=t+10;
y=y+10;
}
【问题讨论】:
-
也许如果您描述了为什么要查找图像的名称,您可能会得到解决问题的替代解决方案。
标签: iphone