Differences From Artifact [76ff0845ba]:
- File
iOS/ShowDetailsController.m
— part of check-in
[461f9773b4]
at
2016-10-09 15:53:41
on branch trunk
— Add initial iOS application
This is already in a working state, but is still missing a few things.
For example, there is no proper progress indication during generation
and the UI just hangs and there's no way to delete a site yet. (user: js, size: 5035) [annotate] [blame] [check-ins using]
To Artifact [a896899871]:
- File iOS/ShowDetailsController.m — part of check-in [8af2dff002] at 2016-10-09 16:37:48 on branch trunk — Add support for removing a site (user: js, size: 5808) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
179 180 181 182 183 184 185 186 | NSMutableString *password = [NSMutableString stringWithUTF8String: (char*)generator.output]; of_explicit_memset(generator.output, 0, strlen((char*)generator.output)); return password; } @end | > > > > > > > > > > > > > > > > > > > > > > > > > | 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 | NSMutableString *password = [NSMutableString stringWithUTF8String: (char*)generator.output]; of_explicit_memset(generator.output, 0, strlen((char*)generator.output)); return password; } - (IBAction)remove: (id)sender { UIAlertController *alert = [UIAlertController alertControllerWithTitle: @"Remove Site?" message: @"Do you want to remove this site?" preferredStyle: UIAlertControllerStyleAlert]; [alert addAction: [UIAlertAction actionWithTitle: @"No" style: UIAlertActionStyleCancel handler: nil]]; [alert addAction: [UIAlertAction actionWithTitle: @"Yes" style: UIAlertActionStyleDestructive handler: ^ (UIAlertAction *action) { [self.mainViewController.siteStorage removeSite: _name]; [self.mainViewController.tableView reloadData]; [self.navigationController popViewControllerAnimated: YES]; }]]; [self presentViewController: alert animated: YES completion: nil]; } @end |