DetailViewController Working every other click


I correctly wrote the code and everything- it builds fine. But when I click on an item, it only shows the details every other click, not every click. I’m wondering what’s causing this. Thank you so much!


Please post your code for others to see if you want help.



#import <UIKit/UIKit.h>

@interface DetailViewController : UIViewController
    __weak IBOutlet UITextField *nameField;
    __weak IBOutlet UITextField *valueField;
    __weak IBOutlet UITextField *serialNumberField;
    __weak IBOutlet UILabel *dateLabel;

#import “DetailViewController.h”

@implementation DetailViewController

  • (void)viewDidLoad
    [super viewDidLoad];
    [self.view setBackgroundColor:[UIColor groupTableViewBackgroundColor]];



nevermind, i put DeselectRowAtIndexPath, instead of SelectRow…
Thank you!