Я получаю сообщение об ошибке "отправлено освобожденному экземпляру 0x141dafb0", когда он поступает из UIBarButtonItem, когда его приложение нажимается на приложении. любая помощь будет принята с благодарностью
Ошибка:
*** -[PeerConnection performSelector:withObject:withObject:]: message sent to deallocated instance 0x14143ff0
PeerConnection.h
#import <UIKit/UIKit.h>
#import <GameKit/GameKit.h>
@interface PeerConnection : NSObject <GKPeerPickerControllerDelegate, GKSessionDelegate> {
UIBarButtonItem *StartConnection;
}
- (IBAction) StartConnectionAction;
@property (nonatomic, retain) IBOutlet UIBarButtonItem *StartConnection;
@end
PeerConnection.m
#import "PeerConnection.h"
@implementation PeerConnection
@synthesize StartConnection;
- (IBAction) StartConnectionAction {
NSLog(@"Start Connection to the other IPhones");
[StartConnection release];
}
- (void)dealloc {
[super dealloc];
}
@end
Я включил Зомби, и это все, что он мне дает