From 21a6e1f930936eae1bca743430347288fa5e39c8 Mon Sep 17 00:00:00 2001 From: Zsika Phillip Date: Sat, 7 Apr 2018 23:59:33 -0700 Subject: Minor enhancements (#1041) * Minor enhancements * addresses comment --- Example/Auth/Sample/MainViewController.m | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'Example') diff --git a/Example/Auth/Sample/MainViewController.m b/Example/Auth/Sample/MainViewController.m index e343508..d4915cd 100644 --- a/Example/Auth/Sample/MainViewController.m +++ b/Example/Auth/Sample/MainViewController.m @@ -429,10 +429,10 @@ static NSString *const kRemoveIDTokenListenerTitle = @"Remove Last ID Token Chan */ static NSString *const kSectionTitleApp = @"APP"; -/** @var kUpdateCurrentUserFromSavedTitle - @brief The text of the "Upgrade to saved user" button. +/** @var kSwitchToInMemoryUserTitle + @brief The text of the "Switch to in memory user" button. */ -static NSString *const kUpdateCurrentUserFromSavedTitle = @"Upgrade to saved user"; +static NSString *const kSwitchToInMemoryUserTitle = @"Switch to in memory user"; /** @var kCreateUserTitle @brief The text of the "Create User" button. @@ -750,7 +750,7 @@ typedef enum { }], ]], [StaticContentTableViewSection sectionWithTitle:kSectionTitleSignIn cells:@[ - [StaticContentTableViewCell cellWithTitle:kUpdateCurrentUserFromSavedTitle + [StaticContentTableViewCell cellWithTitle:kSwitchToInMemoryUserTitle value:nil action:^{ [weakSelf updateToSavedUser]; }], [StaticContentTableViewCell cellWithTitle:kCreateUserTitle @@ -2762,7 +2762,8 @@ static NSDictionary *parseURL(NSString *urlString) { } if (!_userInMemory) { - NSLog(@"You need an in memory user to perform this action"); + [self showMessagePrompt:[NSString stringWithFormat:@"You need an in-memory user to perform this" + "action, use the M+ button to save a user to memory.", nil]]; return; } -- cgit v1.2.3