I am getting this error in iOS8 only, working fine in iOS9
[DetailView respondsToSelector:]: message sent to deallocated instance 0x7c818a20
Is there any way by I can find where my object is de-allocating?
I know there is tool zoombie in xcode, but it is only providing the above info, I have also tried profiling but nothing help.
I have also placed exeption breakpoint but control is not breaking anywhere in code.
In My MainVC.m set a property @property (nonatomic,strong) DetailView *d;
On click of a button in MainVC.m (I have to add this detailview as a subview)
_d = [[DetailView alloc]initWithData:dict andImgId:[[_arrayHotelimg objectAtIndex:0] valueForKey:@"img_id"] isTour:NO];
_d.dictData = [_dbObj getHotelDescriptionDataFromHid:_iTabId];
_d.delegate = self;
[self.view addSubview:_d];
DetailView.m
-(id)initWithData:(NSDictionary*)dict andImgId:(NSString*)imgId isTour:(BOOL)isTour{
self = [super initWithFrame:CGRectMake(0, TOP, SCREEN_WIDTH, SCREEN_HEIGHT)];
if (self)
{
self.arrGalleryImages = [NSMutableArray new];
_dbObj = [Database Connetion];
NSArray *subviewArray = [[NSBundle mainBundle] loadNibNamed:@"DetailView" owner:self options:nil];
self = [subviewArray objectAtIndex:0];
self.frame = CGRectMake(0, TOP, SCREEN_WIDTH, SCREEN_HEIGHT);
}
return self;
}
Can anyone help me on how can I find which code is breaking or where is object deallocating?
Why is it working on iOS9 and not on iOS8 ?