2016-05-17 75 views

回答

2

返回的對象採取以下形狀:

node{ 
    "type": 
    "group_name": 
    "image": { 
       "uri": 
       "height": 
       "width": 
       "isStored": 
       }, 
       ..... 

沒有name屬性,你可以像添加name屬性如下在RCTCameraRollManager.m代碼;

NSString *name = [result defaultRepresentation].filename; 
@"node": @{ 
       @"type": [result valueForProperty:ALAssetPropertyType], 
       @"group_name": [group valueForProperty:ALAssetsGroupPropertyName], 
       @"image": @{ 
       @"uri": uri, 
       @"name" : name, 
... 
相關問題