when using PopUpViewcontroller, make sure the variable you assign to it has property strong so that it doesn’t get released.
Else, you’ll get a EXE_ACCESS error.
Notice below of self.singleColPickerPopup:
1 2 3 4 5 6 7 8 9 10 |
if(plistPath) { dict = [[NSDictionary alloc] initWithContentsOfFile:plistPath]; dataArray = dict ? [NSArray arrayWithArray:[dict objectForKey:@"PhysicalExperiences"]] : nil ; //return [[PopUpViewController alloc] initWithChoicesType:type andParameters:dataArray andUnitLabel:unit]; self.singleColPickerPopup = [[SingleColumnPopupPickerViewController alloc] initWithParameters:dataArray andUnitLabel:@"" andIsDigit:NO]; [self.singleColPickerPopup showInView:rootView withImage:nil withMessage:cell.textLabel.text animated:YES]; } |