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