SnyShah SnyShah - 1 year ago 83
Swift Question

How to get to know that UIImage is Squared Image?

How to get to know that selected image through UIImagePickerController is Squared Image ?

Answer Source

You can check Image Height and Width Like

if (imageViewObj.image.size.width  == imageViewObj.image.size.height) {
     NSLog(@"Image is Square");
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download