My app has a view and several textfield on a scroll view,, but on clicking textfield (on ios5 Device), it crashes.,,the textfield delegates are calling .. and when i step into the function .. it goes unto few lines on xcode ,then it crashes.
my app is working fine on ios 4.0(simulator and device) but it crashes on ios5.0(only in device ,not on simulator), and i am not able to debug from device.
my crash report says --
Job appears to have crashed: Segmentation fault: 11
Application 'ttk' exited abnormally with signal 11: Segmentation fault: 11
How to solve this issue,,any link will be useful. Thanks.
already tried - NSZombieEnabled , static Analyser..
After crashing ,, nothing useful appears on log console.
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex {
NSLog(@"button index : %d",buttonIndex);
if(buttonIndex == 0) {
if( [UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypePhotoLibrary]) {
ImageController = [[UIImagePickerController alloc] init];
ImageController.allowsEditing = YES;
ImageController.delegate = self;
ImageController.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
[self.navigationController.topViewController presentModalViewController:ImageController animated:YES];
} else {
[self callAlertViewWithTitle:@"Message!" Message:@"Album not available."];
}
} else if(buttonIndex == 1) {
if( [UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera ]) {
ImageController = [[UIImagePickerController alloc] init];
ImageController.allowsEditing = YES;
ImageController.delegate = self;
ImageController.sourceType = UIImagePickerControllerSourceTypeCamera;
[self.navigationController presentModalViewController:ImageController animated:YES];
} else {
[self callAlertViewWithTitle:@"Message!" Message:@"Camera not available."];
}
}
}
Thanks for all. i got my problem solved.. i had my product name contains special character(')..which was causing the crash,, after removing special characters from product name .. it was working fine.i.e from ( Sean's App) to (Seans App).
Solved ..thanks to @saad,@netrace,@andrea,@paul for replying in such a short time.