summaryrefslogtreecommitdiff
path: root/Juick/ViewControllers
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2021-09-10 21:51:46 +0300
committerGravatar Vitaly Takmazov2021-09-10 21:51:46 +0300
commitc26ae777038429f6cfa19493ee09ee057d569835 (patch)
tree70dc05d32d66a0ea1945b168d543511863a195e0 /Juick/ViewControllers
parentab744aa1c9f50991ccdffe3a288eeac6bdef3db4 (diff)
Fix self avatar button
Diffstat (limited to 'Juick/ViewControllers')
-rw-r--r--Juick/ViewControllers/JuickNavigationController.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Juick/ViewControllers/JuickNavigationController.m b/Juick/ViewControllers/JuickNavigationController.m
index 66ad042..13838d1 100644
--- a/Juick/ViewControllers/JuickNavigationController.m
+++ b/Juick/ViewControllers/JuickNavigationController.m
@@ -44,7 +44,7 @@
[[AppDelegate shared].api fetchImageWithURL:[NSURL URLWithString:avatarUrl] callback:^(NSData *data) {
self.avatarButton = [UIButton buttonWithType:UIButtonTypeCustom];
[self.avatarButton addTarget:self action:@selector(showLoginForm:) forControlEvents:UIControlEventTouchUpInside];
- [self.avatarButton setImage:[UIImage imageWithImage:[UIImage imageWithData:data] fitInsideWidth:44 fitInsideHeight:44] forState:UIControlStateNormal];
+ [self.avatarButton setImage:[UIImage imageWithImage:[UIImage imageWithData:data] fitOutsideWidth:44 fitOutsideHeight:44] forState:UIControlStateNormal];
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:self.avatarButton];
}];
}];