Index: iOS/Base.lproj/Main.storyboard
==================================================================
--- iOS/Base.lproj/Main.storyboard
+++ iOS/Base.lproj/Main.storyboard
@@ -328,11 +328,11 @@
-
+
Index: iOS/ShowDetailsController.m
==================================================================
--- iOS/ShowDetailsController.m
+++ iOS/ShowDetailsController.m
@@ -63,21 +63,24 @@
}
- (void)viewWillAppear: (BOOL)animated
{
SiteStorage *siteStorage = self.mainViewController.siteStorage;
- NSInteger row =
- self.mainViewController.tableView.indexPathForSelectedRow.row;
+ NSIndexPath *indexPath =
+ self.mainViewController.tableView.indexPathForSelectedRow;
[_name release];
- _name = [siteStorage.sites[row] retain];
+ _name = [siteStorage.sites[indexPath.row] retain];
_length = [siteStorage lengthForSite: _name];
_legacy = [siteStorage isSiteLegacy: _name];
self.nameField.text = [_name NSObject];
self.lengthField.text = [NSString stringWithFormat: @"%zu", _length];
self.legacySwitch.on = _legacy;
+
+ [self.mainViewController.tableView deselectRowAtIndexPath: indexPath
+ animated: YES];
}
- (void)viewDidAppear: (BOOL)animated
{
[self.passphraseField becomeFirstResponder];