2
RestKitに問題がありますRKObjectLoaderは配列パラメータでパスを切り捨てます
私はパラメータ文字列配列で送信しようとしています。このようにしてください。私は、サーバー上のコンソールを見ると、私は
は/タグ?型%5B%の5D =%D0%A0%D0%BE%D0%B4%D1」GET開始を参照
RKObjectMapping* tagMapping = [[RKObjectManager sharedManager].mappingProvider objectMappingForClass:[RKTag class]]; NSArray *tags = [NSArray arrayWithObjects:@"Home", @"Relation", nil]; NSDictionary *dictParams = [NSDictionary dictionaryWithObject:tags forKey:@"type"]; NSString *resourcePath = [[NSString stringWithString:@"/tags"] stringByAppendingQueryParameters:dictParams]; [_m loadObjectsAtResourcePath:resourcePath usingBlock:^(RKObjectLoader *loader) { [loader setObjectMapping:tagMapping]; [loader setMethod:RKRequestMethodGET]; [loader setDelegate:delegate]; }];
しかし、 %81%D1%82%D0%B2%D0%B5%D0%BD%D0%BD%D1%8B%D0%B5%20%D0%BE%D1%82%D0%BD%D0%BE%D1 2012年5月11日16:30:54 +0400 でJSON としてtagsController#indexによる処理が行われました。パラメータ:{"type(%)% "=> [" Home "]}
RKObjectLoaderの初期化時に、メソッドl oaderWithResourcePath、私の配列を切り詰めるもの
これを修正するには?