我试图改变延迟时间后,我的图像视图的位置,就像下面的代码改变位置的UIImageView通过选择
CGPoint pointOne=CGPointMake(150, 200);
UIImageView *sampleImage=[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"hello.png"]];
[sampleImage performSelector:@selector(setCenter:) withObject:[NSValue valueWithCGPoint:pointOne] afterDelay:0.5];
,因为图像视图不接受nsvalue不正常工作PLZ发言权任何其他解决方案来传递cgpoint或cgrect作为对象。提前致谢。
thx for ur reply。但我想另一种方式,而不创建新的方法... – KingofHeaven 2010-08-21 11:47:31
你不能使用'setCenter:'通过传递除'CGPoint'之外的任何东西作为参数 – rano 2010-08-21 12:12:59