From c26ae777038429f6cfa19493ee09ee057d569835 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 10 Sep 2021 21:51:46 +0300 Subject: Fix self avatar button --- Juick/ViewControllers/JuickNavigationController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Juick/ViewControllers') 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]; }]; }]; -- cgit v1.2.3