• R/O
  • HTTP
  • SSH
  • HTTPS

Tombo: Commit

TOMBO source code


Commit MetaInfo

Revision519ff04cd58ee488a95252431d4c9e8a00028b6f (tree)
Time2012-04-11 22:25:12
AuthorHirami <tomohisa.hirami@nift...>
CommiterHirami

Log Message

Resign forcus on SinglePasswordDialog.

Change Summary

Incremental Difference

--- a/iOS/Tombo/Tombo/SinglePasswordDialog.m
+++ b/iOS/Tombo/Tombo/SinglePasswordDialog.m
@@ -28,12 +28,12 @@
2828
2929 - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
3030 finished = YES;
31+ UITextField *field = [self textFieldAtIndex:0];
3132 if (buttonIndex == 0) {
3233 // Cancel
3334 self.password = nil;
3435 } else if (buttonIndex == 1) {
3536 // OK
36- UITextField *field = [self textFieldAtIndex:0];
3737 NSString *pw = [field.text stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]];
3838 if (pw.length == 0) {
3939 self.password = nil;
@@ -41,6 +41,7 @@
4141 self.password = pw;
4242 }
4343 }
44+ [field resignFirstResponder];
4445 }
4546
4647 @end
Show on old repository browser