Я изо всех сил пытаюсь выяснить, почему мое приложение падает, когда я выпускаю синтезированные свойства. Мое приложение запускается, и когда я нажимаю на строку, она переводит меня в DetailViewController, затем, когда я возвращаюсь и снова нажимаю на строку, приложение вылетает с EXC_BAD_ACCESS.
DetailViewController.h:
#import <UIKit/UIKit.h>
@interface DetailViewController : UIViewController {
IBOutlet UILabel *clipboardLabel;
}
@property (nonatomic, retain) IBOutlet UILabel *clipboardLabel;
@end
DetailViewController.m
#import "DetailViewController.h"
@implementation DetailViewController
@synthesize clipboardLabel;
- (void)viewDidLoad
{
// Do any additional setup after loading the view from its nib.
clipboardLabel.text = @"Tap an image to copy";
[super viewDidLoad];
}
- (void)dealloc
{
[clipboardLabel dealloc];
[super dealloc];
}
@end