From 57c8c45a4730fe7c980b8b7eadf94ca60b97db43 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 3 Feb 2014 16:51:47 +0400 Subject: Still fighting with scroll :( --- Juick/RevealPanelViewController.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Juick/RevealPanelViewController.m') diff --git a/Juick/RevealPanelViewController.m b/Juick/RevealPanelViewController.m index 3b6a446..fe44509 100644 --- a/Juick/RevealPanelViewController.m +++ b/Juick/RevealPanelViewController.m @@ -69,8 +69,10 @@ static NSString *CellIdentifier = @"NavCell"; color = [UIColor redColor]; dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0), ^{ [User get:[[PDKeychainBindings sharedKeychainBindings] stringForKey:@"com.juick.username"] callback:^(User *user) { - [self.titleView.image setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"https://i.juick.com/as/%@.png", user.uid]]]; - [self.titleView.title setText:user.uname]; + if (user != nil) { + [self.titleView.image setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"https://i.juick.com/as/%@.png", user.uid]]]; + [self.titleView.title setText:user.uname]; + } }]; }); } else { -- cgit v1.2.3