Skip to content
This repository was archived by the owner on Oct 30, 2018. It is now read-only.

Commit a1e3482

Browse files
author
Ignacio Romero Zurbuchen
committed
Tweaks sample's logging of keyboard status update
1 parent 51d3aef commit a1e3482

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Examples/Messenger-Shared/MessageViewController.m

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,12 @@ - (void)didChangeKeyboardStatus:(SLKKeyboardStatus)status
377377
{
378378
// Notifies the view controller that the keyboard changed status.
379379

380-
NSLog(@"didChangeKeyboardStatus : %ld", status);
380+
switch (status) {
381+
case SLKKeyboardStatusWillShow: return NSLog(@"Will Show");
382+
case SLKKeyboardStatusDidShow: return NSLog(@"Did Show");
383+
case SLKKeyboardStatusWillHide: return NSLog(@"Will Hide");
384+
case SLKKeyboardStatusDidHide: return NSLog(@"Did Hide");
385+
}
381386
}
382387

383388
- (void)textWillUpdate

0 commit comments

Comments
 (0)