小编Kri*_*ite的帖子

Datagrip - 对超过500个结果的查询进行行计数(轻松)

有没有办法(设置或快捷方式)显示输出超过500行的查询的总行数 - 也就是说,不修改首选项中的"结果集页面大小"值?select count(*) from (<query>) t除了显示的行之外,我主要寻找输出.

datagrip

10
推荐指数
3
解决办法
3944
查看次数

NSInternalInconsistencyExceptionException:指定的模式表示样式没有相应的表示控制器

更新到iOS 8.0 SDK后,尝试UIImagePickerController从内显示时出现错误UITableViewCell

*** Assertion failure in -[PartsSearchViewController 
_presentViewController:withAnimationController:completion:], 
/SourceCache/UIKit/UIKit-3318.0.1/UIViewController.m:5726

*** Terminating app due to uncaught exception 
'NSInternalInconsistencyException', 
reason: 'The specified modal presentation style doesn't 
have a corresponding presentation controller.'
Run Code Online (Sandbox Code Playgroud)

我的UITableViewCell“ PartCell”被这样声明:

@interface PartCell : UITableViewCell <UIImagePickerControllerDelegate>
Run Code Online (Sandbox Code Playgroud)

在PartCell的presentViewController以下行中失败:

- (IBAction)takeAuditImageClicked:(id)sender {
    UIImagePickerController *picker = [[UIImagePickerController alloc] init];
    picker.delegate = (id)self;
    picker.allowsEditing = YES;
    picker.modalPresentationStyle = UIModalPresentationNone;
    picker.sourceType = UIImagePickerControllerSourceTypeCamera;

    // FAILING ON THE LINE BELOW:
    [[UIViewController topMostController] presentViewController:picker animated:YES completion:NULL];  
}
Run Code Online (Sandbox Code Playgroud)

以下是 …

objective-c uitableview uiimagepickercontroller ios

1
推荐指数
1
解决办法
1250
查看次数