我正在尝试在NativeScript中实现一个Native库。像这样的本机代码:
@implementation ViewController
{
NSDictionary *mediaInfo;
}
- (void)mediaPickerController:(IQMediaPickerController*)controller didFinishMediaWithInfo:(NSDictionary *)info;
{
NSLog(@"Info: %@",info);//Here you'll get the information about captured or picked assets
mediaInfo = [info copy];
[self.tableView reloadData];
}
所以,我这样想:
public mediaPickerControllerDidFinishMediaWithInfo(controller, info) {
let mediaInfo = info.copy();
console.log(mediaInfo);
}
我得到这样的输出:
{
IQMediaTypeImage = (
{
IQMediaImage = "<UIImage: 0x608000290090> size {4288, 2848} orientation 0 scale 1.000000";
}
);
但我不能接受这些信息。有人可以帮我吗?