CryptoPassphrase  Check-in [e4f6874a3c]

Overview
Comment:[iOS] Go back after generation
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: e4f6874a3c6f9d21996dedd09f70d276cc0eef2fe2ed1ec0d88f749b6ac54fec
User & Date: js on 2016-10-09 16:39:42
Other Links: manifest | tags
Context
2016-10-09
16:42
[iOS] Disable correction & spell checking for name check-in: 207fdf76c7 user: js tags: trunk
16:39
[iOS] Go back after generation check-in: e4f6874a3c user: js tags: trunk
16:39
[iOS] Fix legacy toggle check-in: 830f7b5893 user: js tags: trunk
Changes

Modified iOS/ShowDetailsController.m from [5c7248a11d] to [bd27be3bf5].

121
122
123
124
125
126
127
128



129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146



147
148
149
150

151
152
153
154
155
156
157
121
122
123
124
125
126
127

128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147

148
149
150
151
152
153

154
155
156
157
158
159
160
161







-
+
+
+

















-
+
+
+



-
+







	    alertControllerWithTitle: @"Password Generated"
			     message: @"The password has been copied into the "
				      @"clipboard."
		      preferredStyle: UIAlertControllerStyleAlert];
	[alert addAction:
	    [UIAlertAction actionWithTitle: @"OK"
				     style: UIAlertActionStyleDefault
				   handler: nil]];
				   handler: ^ (UIAlertAction *action) {
		[self.navigationController popViewControllerAnimated: YES];
	}]];

	[self presentViewController: alert
			   animated: YES
			 completion: nil];
}

- (void)_generateAndShow
{
	NSMutableString *password = [self _generate];

	UIAlertController *alert = [UIAlertController
	    alertControllerWithTitle: @"Generated Passphrase"
			     message: password
		      preferredStyle: UIAlertControllerStyleAlert];
	[alert addAction:
	    [UIAlertAction actionWithTitle: @"OK"
				     style: UIAlertActionStyleDefault
				   handler: nil]];
				   handler: ^ (UIAlertAction *action) {
		[self.navigationController popViewControllerAnimated: YES];
	}]];

	[self presentViewController: alert
			   animated: YES
			 completion:  ^ {
			 completion: ^ {
		clearNSMutableString(password);
	}];
}

- (NSMutableString*)_generate
{
	id <PasswordGenerator> generator;