Overview
Comment: | Add support for removing a site |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
8af2dff0024267be14fa594ff45e1d40 |
User & Date: | js on 2016-10-09 16:37:48 |
Other Links: | manifest | tags |
Context
2016-10-09
| ||
16:39 | [iOS] Fix legacy toggle check-in: 830f7b5893 user: js tags: trunk | |
16:37 | Add support for removing a site check-in: 8af2dff002 user: js tags: trunk | |
15:53 | Add initial iOS application check-in: 461f9773b4 user: js tags: trunk | |
Changes
Modified iOS/Base.lproj/Main.storyboard from [476fab2345] to [20e260d9fa].
︙ | |||
398 399 400 401 402 403 404 | 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 | - + + + + + + + + | </tableViewSection> </sections> <connections> <outlet property="dataSource" destination="ayJ-fs-aIU" id="kaj-Eg-sHs"/> <outlet property="delegate" destination="ayJ-fs-aIU" id="af9-4J-p1D"/> </connections> </tableView> |
︙ |
Modified iOS/ShowDetailsController.h from [7e5dadfc7f] to [9cb5aa0ebe].
︙ | |||
33 34 35 36 37 38 39 40 | 33 34 35 36 37 38 39 40 41 42 | + + | } @property (retain, nonatomic) IBOutlet UITextField *nameField; @property (retain, nonatomic) IBOutlet UITextField *lengthField; @property (retain, nonatomic) IBOutlet UISwitch *legacySwitch; @property (retain, nonatomic) IBOutlet UITextField *passphraseField; @property (retain) MainViewController *mainViewController; - (IBAction)remove: (id)sender; @end |
Modified iOS/ShowDetailsController.m from [76ff0845ba] to [a896899871].
︙ | |||
179 180 181 182 183 184 185 186 | 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 |