[iOS] Create rounded corner UIView
To make your view has rounded corner, just add the simple code below:
imageView.layer.cornerRadius
And don't forget to add QuartzCore lib unless you want to see nothing happend.
noise dept.
EXPECTATIONS
Fai_Ryy
almost home
The Stonewall Inn
Sade Olutola
h
Cookie Run:Kingdom Official!

Love Begins
TMBGareOK. The Official They Might Be Giants tumblr

shark vs the universe
KIROKAZE
macklin celebrini has autism

pixel skylines
Mike Driver
$LAYYYTER

let's talk about Bridgerton tea, my ask is open
Game of Thrones Daily
seen from Saudi Arabia
seen from Canada

seen from Germany
seen from United States

seen from Malaysia

seen from Australia
seen from Bangladesh

seen from United Kingdom
seen from United Arab Emirates

seen from Egypt
seen from Canada

seen from Thailand
seen from Germany
seen from Türkiye

seen from Germany

seen from Malaysia
seen from United Kingdom

seen from United States

seen from United Kingdom

seen from Italy
@thecodesnippetteam
[iOS] Create rounded corner UIView
To make your view has rounded corner, just add the simple code below:
imageView.layer.cornerRadius
And don't forget to add QuartzCore lib unless you want to see nothing happend.

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
[iOS] Take screenshot of UIView
Sometimes, you need to create a receipt or filling data to an e-ticket so that user can save it into their Camera Roll.Â
Here is how you do it: 1. Create an UIView as a template of your receipt. 2. Put the code below to where you want to create the receipt.
NSString* xibName = @"ReceiptView"; // Your receipt view ReceiptView *targetView = [[[NSBundle mainBundle] loadNibNamed:xibName owner:self options:nil] firstObject]; // This is where you put your data to the view [targetView.priceLabel setText:[NSString stringWithFormat:@"$%@", price]]; // ... CGRect frame = targetView.frame; UIGraphicsBeginImageContext(frame.size); CGContextRef ctx = UIGraphicsGetCurrentContext(); CGContextScaleCTM(ctx, 2, 2); CGContextTranslateCTM(ctx, -targetView.frame.origin.x, -targetView.frame.origin.y); [targetView.layer renderInContext:ctx]; UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); // Request to save the image to camera roll [library writeImageToSavedPhotosAlbum:[viewImage CGImage] orientation:(ALAssetOrientation)[viewImage imageOrientation] completionBlock:^(NSURL *assetURL, NSError *error){ if (error) { NSLog(@"Error writing image"); } else { NSLog(@"Image saved at %@", assetURL); if (success) { success(viewImage); } } }];