Aqsa.Azqa
hide bio
PM . Follow . Favorite
Joined 01-20-16, id: 7476144, Profile Updated: 07-12-16
Author has written 12 stories for 2Moons, 5ive Girls, 300, .hack/SIGN, Bride of Deimos, 100% Wolf, 28 Days Later, Visionaries: Knights of the Magical Light, A Walk to Remember, A Man of No Importance, 7 Billion Needles/70億の針, 123 Slaughter Me Street, Light in the Piazza, and In the Heights.

I think you don't understand what you are doing. You can't "crop" a UIImageView - only UIImages. So your croppedImage method should be in a UIImage category and not a UIImageView category. The bounds rect you pass to the crop method must be in relation to the image size, not to the imageview bounds. It is irrelevant what the contentMode of the image view is - the cropping of the image will always work the same. First get the image from the image view. Then create a new cropped image from it and finally set the cropped image for the image view. This can be done in one line of code:

Since your contentMode is 'aspect fit' the new image will automatically stretch to fit in the view frame. You can also try to change the view frame based on the image.size to avoid pixelation effects.

am very new to objective c and I'm just getting my bearings. I want to do something really simple but it proves to be quite a challenge:

I am trying to display an image into an UIImageView. The image I'm showing is large and I want it scaled down to fit the UIImageView. I tried setting the AspectFit View mode but the image gets displayed to the original size and is clipped by the UIImageView. My code is below:

I think you don't understand what you are doing. You can't "crop" a UIImageView - only UIImages. So your croppedImage method should be in a UIImage category and not a UIImageView category. The bounds rect you pass to the crop method must be in relation to the image size, not to the imageview bounds. It is irrelevant what the contentMode of the image view is - the cropping of the image will always work the same. First get the image from the image view. Then create a new cropped image from it and finally set the cropped image for the image view. This can be done in one line of code:

Steps:

1. Login to fanfiction account with lengthy bio
2. Tap 'More' option with bio

Actual Result:

Large empty space is displayed above and below text in case of lengthy author detail.

Expected Result:

Large empty space should not display above and below text in case of lengthy author detail.

Device:

iPad (iOS 8.1)

I think you don't understand what you are doing. You can't "crop" a UIImageView - only UIImages. So your croppedImage method should be in a UIImage category and not a UIImageView category. The bounds rect you pass to the crop method must be in relation to the image size, not to the imageview bounds. It is irrelevant what the contentMode of the image view is - the cropping of the image will always work the same. First get the image from the image view. Then create a new cropped image from it and finally set the cropped image for the image view. This can be done in one line of code:

Since your contentMode is 'aspect fit' the new image will automatically stretch to fit in the view frame. You can also try to change the view frame based on the image.size to avoid pixelation effects.

am very new to objective c and I'm just getting my bearings. I want to do something really simple but it proves to be quite a challenge:

I am trying to display an image into an UIImageView. The image I'm showing is large and I want it scaled down to fit the UIImageView. I tried setting the AspectFit View mode but the image gets displayed to the original size and is clipped by the UIImageView. My code is below:

I think you don't understand what you are doing. You can't "crop" a UIImageView - only UIImages. So your croppedImage method should be in a UIImage category and not a UIImageView category. The bounds rect you pass to the crop method must be in relation to the image size, not to the imageview bounds. It is irrelevant what the contentMode of the image view is - the cropping of the image will always work the same. First get the image from the image view. Then create a new cropped image from it and finally set the cropped image for the image view. This can be done in one line of code:

Sort: Category . Published . Updated . Title . Words . Chapters . Reviews . Status .

Four Kids Find A Journal by 444timothy reviews
A jock, a nerd, an outcast and an optimist uncover the mysteries of Gravity Falls with the help of a mysterious book they found in the middle of the woods.
Crossover - Gravity Falls & Loud House - Rated: K+ - English - Mystery/Supernatural - Chapters: 4 - Words: 38,051 - Reviews: 10 - Favs: 33 - Follows: 30 - Updated: 9/13/2017 - Published: 2/7/2017 - Dipper P., Mabel P., Lincoln L., Lynn L.
And she fell by nweiil reviews
Courte, très courte, histoire écrite en cours de littérature anglaise, par un ami et moi-même. Originellement écrite en anglais, je l'ai traduit en français pour les non bilingues, mais je la reposterai également en anglais plus tard. [Rating T pour présence de mort, de suicide, et de schizophrénie.]
Harry Potter - Rated: T - French - Chapters: 2 - Words: 936 - Reviews: 3 - Favs: 4 - Follows: 1 - Published: 2/20/2017 - Complete
My, What Lovely Melons by Violet Lunar Wolf reviews
Hermione gets more than she bargained for when she suggests trying something new to spice up their relationship. But that isn't always a bad thing. And in some cases it can be quite funny. Inspired by and dedicated to SiriusBarks.
Harry Potter - Rated: M - English - Humor/Romance - Chapters: 1 - Words: 1,371 - Reviews: 3 - Favs: 23 - Follows: 4 - Published: 2/20/2017 - [Hermione G., Sirius B.] - Complete
Friend A by niconiconyx reviews
Despite what he tries to tell himself, Yuri Plisetsky absolutely hates playing Friend A when he's with the two of them. (Yuri's thoughts throughout the series about his relationship with Viktor and Yuuri. Platonic! Otabek/Yuri, though it's not a major point in this one-shot.)
Yuri!!! on Ice - Rated: T - English - Angst/Romance - Chapters: 1 - Words: 1,928 - Reviews: 4 - Favs: 15 - Follows: 7 - Published: 2/10/2017 - [Yuri P., Otabek A.] [Viktor N., Yuuri K.] - Complete
A Dance of Dragons by WhiteravenGreywolf reviews
When he was a child, Genji hated his dragon. Why couldn't it be as strong and obedient as Hanzo's? As time went on, though, he came to understand little Soba. The evolution of Genji and his dragon's relationship.
Overwatch - Rated: T - English - Family/Hurt/Comfort - Chapters: 1 - Words: 3,003 - Reviews: 7 - Favs: 22 - Follows: 12 - Published: 2/7/2017 - Hanzo S., OC, Genji S. - Complete
Wat Vleermuisoren Horen by Jenneke
One-shot. Knijster luistert een gesprek af, maar waar loopt dat op uit?
Harry Potter - Rated: T - Dutch - Romance/Humor - Chapters: 1 - Words: 834 - Favs: 1 - Published: 5/25/2013 - Kreacher, Harry P., Ginny W. - Complete
Sort: Category . Published . Updated . Title . Words . Chapters . Reviews . Status .

Hi Test V4 reviews
Testing
123 Slaughter Me Street - Rated: K - English - Humor - Chapters: 1 - Words: 1 - Reviews: 3 - Published: 1/30/2017
Bounjorno
Hallo
7 Billion Needles/70億の針 - Rated: K - English - Romance/Drama - Chapters: 1 - Words: 2 - Published: 10/3/2016
Friday Thank God reviews
! It's Friday ! Yeah! Hell Fun! It's 30th June 3:59pm
5ive Girls - Rated: K+ - Afrikaans - Romance/Drama - Chapters: 2 - Words: 62 - Reviews: 4 - Favs: 1 - Follows: 1 - Updated: 8/16/2016 - Published: 5/4/2016 - Mara, Connie, Miss Pearce, Cecilia
A man of NO importance
testing
A Man of No Importance - Rated: K - English - Chapters: 1 - Words: 4 - Published: 7/13/2016
In The Heights reviews
Movie
Crossover - A Walk to Remember & In the Heights - Rated: K - English - Romance/Fantasy - Chapters: 1 - Words: 2 - Reviews: 1 - Published: 7/11/2016
Bride Of Deimons reviews
Test story sorting, new testing.
Bride of Deimos - Rated: K - English - Friendship/Romance - Chapters: 3 - Words: 261 - Reviews: 4 - Updated: 7/11/2016 - Published: 6/29/2016
Light In Piazza
Holla
Crossover - Visionaries: Knights of the Magical Light & Light in the Piazza - Rated: K - English - Angst/Supernatural - Chapters: 2 - Words: 2 - Published: 7/4/2016
Dilwale reviews
bollywood Movie story
28 Days Later - Rated: K - English - Romance/Hurt/Comfort - Chapters: 1 - Words: 1 - Reviews: 1 - Published: 7/1/2016
Test Storytelling
The first half of the year and I don't think that it was not immediately available to all of them in my head and a great way of saying it would mean so so happy to see my tweets and you have a good time with you guys have to go back
.hack/SIGN - Rated: K+ - Albanian - Romance - Chapters: 17 - Words: 394 - Favs: 1 - Updated: 6/30/2016 - Published: 5/20/2016 - Aina, Albireo, Bordeaux, Cashmere
Lost Diary
Summary
100% Wolf - Rated: K - English - Drama - Chapters: 2 - Words: 10 - Published: 6/30/2016
The Game reviews
Games
2Moons - Rated: T - Catalan - Drama - Chapters: 2 - Words: 3 - Reviews: 1 - Favs: 1 - Updated: 6/7/2016 - Published: 4/20/2016
New Comedy Book
Comics 300 humor parody
300 - Rated: K - English - Humor/Parody - Chapters: 3 - Words: 15 - Published: 5/9/2016
Manager of:
Community: abcdefr
Focus: General: All Categories