redribben

frame

Jan 3rd, 2015
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. UIImage *image = [UIImage imageNamed:@"123.png"];
  2.     CGSize imageSize = image.size;
  3.     CGFloat newWidth = (([[ UIScreen mainScreen ] bounds].size.height) / imageSize.height) * imageSize.width;
  4.     UIImageView *firstFrame = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, newWidth, [[ UIScreen mainScreen ] bounds].size.height)];
Advertisement
Add Comment
Please, Sign In to add comment