DetailViewController Working every other click


#1

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!


#2

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


#3

DetailViewController.h

#import <UIKit/UIKit.h>

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

#import “DetailViewController.h”

@implementation DetailViewController

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

@end


#4

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