Что делает эта строка кода:
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];