• R/O
  • HTTP
  • SSH
  • HTTPS

Tombo: 提交

TOMBO source code


Commit MetaInfo

修訂519ff04cd58ee488a95252431d4c9e8a00028b6f (tree)
時間2012-04-11 22:25:12
作者Hirami <tomohisa.hirami@nift...>
CommiterHirami

Log Message

Resign forcus on SinglePasswordDialog.

Change Summary

差異

--- 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