The user avatar did not keep its aspect ratio

This commit is contained in:
Yannick Le Collen
2014-12-16 08:49:19 +01:00
parent 1945b25fa4
commit 81f4fddec9
@@ -76,6 +76,7 @@ NSString* const kCommandsDescriptionText = @"The following commands are availabl
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:logoutBtn];
// keep the aspect ratio of the contact thumbnail
// scale it to fit the button frame
[[self.userPicture imageView] setContentMode: UIViewContentModeScaleAspectFill];
[[self.userPicture imageView] setClipsToBounds:YES];