【发布时间】:2011-05-08 07:36:26
【问题描述】:
这行代码是做什么的:
UIImageView* flakeView = [[UIImageView alloc] initWithImage:flakeImage];
如果有帮助那么我有这个:
int startX2 = round(random() % 480);
// set the flake start position
flakeView.frame = CGRectMake(startX2, 330.0, 30, 20);
flakeView.alpha = 1;
// put the flake in our main view
[self.view addSubview:flakeView];
【问题讨论】:
标签: iphone cocoa-touch animation random uiimageview