You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have to use height and width of the image to resize the uiimageview. but i am unable to get the height and width of the image.
there is no option to get the height and width. below is my code. i want to assign image height and width instead of static values (width: 355, height: 200)
objImgview.loadImageFromURLString(strURLN, placeholderImage: UIImage(named: "KiavashFaisali")) {
(finished, potentialError) in
if finished {
objImgview.frame = CGRect(x: 0, y: CGFloat(imgPosteryPoss), width: 355, height: 200 )
}
else if let error = potentialError {
print("error occurred with description: (error.localizedDescription)")
}
}
The text was updated successfully, but these errors were encountered:
Hello, thank you for posting this, I think many people would be interested to dynamically size the UIImageView based on the exact size of the UIImage loaded within.
I have to use height and width of the image to resize the uiimageview. but i am unable to get the height and width of the image.
there is no option to get the height and width. below is my code. i want to assign image height and width instead of static values (width: 355, height: 200)
objImgview.loadImageFromURLString(strURLN, placeholderImage: UIImage(named: "KiavashFaisali")) {
(finished, potentialError) in
if finished {
objImgview.frame = CGRect(x: 0, y: CGFloat(imgPosteryPoss), width: 355, height: 200 )
}
else if let error = potentialError {
print("error occurred with description: (error.localizedDescription)")
}
}
The text was updated successfully, but these errors were encountered: