有人看到这段代码出了什么问题吗?
UIImagePickerControllerSourceType pickerType = UIImagePickerControllerSourceTypePhotoLibrary;
UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
[imagePicker setSourceType:pickerType];
[imagePicker setMediaTypes:[UIImagePickerController availableMediaTypesForSourceType:pickerType]];
[imagePicker setDelegate:self];
UIPopoverController *pop = [[UIPopoverController alloc] initWithContentViewController:imagePicker];
[pop setDelegate:self];
[pop presentPopoverFromRect:CGRectMake(100, 100, 100, 100) inView:self permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
[pop setPopoverContentSize:CGSizeMake(300, 500)];
在ios4上运行良好。但是在ios5 / ipad上它崩溃了
*** Assertion failure in -[PLHighlightingTableView _createPreparedCellForGlobalRow:withIndexPath:], /SourceCache/UIKit_Sim/UIKit-1912.3/UITableView.m:6072
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:'
滚动图像选择器时发生异常。
有什么想法吗?
此致
-dezember