diff options
author | Vitaly Takmazov | 2019-03-20 01:50:48 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-03-20 01:50:48 +0300 |
commit | 1f3e08f107064fa429c6aa2a26702f6e63a791f0 (patch) | |
tree | 2653f4dc08edd1c69050ef6d9c800f5e12246e3a /Juick/ViewControllers/LoginViewController.m | |
parent | 7a1aa6e48b37f4244fd5887ea7a1d15dd6fb7768 (diff) |
[AppDelegate shared]
Diffstat (limited to 'Juick/ViewControllers/LoginViewController.m')
-rw-r--r-- | Juick/ViewControllers/LoginViewController.m | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Juick/ViewControllers/LoginViewController.m b/Juick/ViewControllers/LoginViewController.m index c0b1a0d..e1b12f2 100644 --- a/Juick/ViewControllers/LoginViewController.m +++ b/Juick/ViewControllers/LoginViewController.m @@ -62,8 +62,7 @@ NSString *password = [SAMKeychain passwordForService:[[NSBundle mainBundle] bundleIdentifier] account:@"com.juick.password"]; [[APIClient sharedClient].manager.requestSerializer setAuthorizationHeaderFieldWithUsername:username password:password]; - AppDelegate *app = (AppDelegate *)[[UIApplication sharedApplication] delegate]; - [app registerForRemoteNotifications]; + [[AppDelegate shared] registerForRemoteNotifications]; CATransition* transition = [CATransition animation]; transition.duration = 0.3; transition.type = kCATransitionFade; |