Questions tagged [restkit-0.20]

RestKit 0.2x is the latest major release of RestKit which includes several new features as well as significant changes since the previous 0.10.x. RestKit is a modern Objective-C framework for implementing RESTful web services clients on iOS and Mac OS X. It provides a powerful object mapping engine that seamlessly integrates with Core Data and a simple set of networking primitives for mapping HTTP requests and responses built on top of AFNetworking.

731 questions
0
votes
1 answer

Mapping JSON key values to Core Data attributes in RestKit 0.20.1

Given this JSON: { "company": "Big Inc." "products": [ { "category": "", "daily_sales": { "2013-04-13": 23 "2013-05-27": 67 "2013-05-28": 89 } …
thejaz
  • 2,763
  • 2
  • 26
  • 40
0
votes
2 answers

What is the best way in RestKit to send off two requests then do a action only after both return?

I have a number of API calls I need to send off and then want to do something only when they all return, like [SVProgressHUD dismiss]; What is the best way to do that?
Doug Tabuchi
  • 308
  • 1
  • 10
0
votes
1 answer

Mapping array in restkit v.20

I Read From Google Places API { "html_attributions" : [ "Listings by \u003ca href=\"http://www.yellowpages.com.au/\"\u003eYellow Pages\u003c/a\u003e" ], "results" : [ { "geometry" : { "location" : { "lat" : -33.870540, "lng" :…
Tefa
  • 15
  • 5
0
votes
4 answers

Duplicate symbols for architecture - CocoaPods + Sonic.framework

I'm using CocoaPods and everythnig works fine until I add Sonic.framework. I'm getting a linker error: ld: 96 duplicate symbols for architecture armv7s clang: error: linker command failed with exit code 1 (use -v to see invocation) Complete…
Rizon
  • 1,516
  • 4
  • 25
  • 45
0
votes
1 answer

RestKit - Load resource path after cancel using RKObjectManager

I use an RKObjectManager to load objects from a remote resource, and, use a tableView to display the fetched objects. When my tableView model is deallocated I cancel all current requests with [self.objectManager…
georgemp
  • 716
  • 10
  • 21
0
votes
1 answer

Restkit object mapping

I'm struggling trying to map the following json response: { "data": { "plans": [ { "planid":"10", "plandescription":"foo", "plantype":"2", "planvalue":"30", …
Rizon
  • 1,516
  • 4
  • 25
  • 45
0
votes
2 answers

How do I assign one Array to another Array in objective-c?

*emphasized text*So I'm using restkit to pull back a bunch of objects to display in a UI Collection view. I get my initial mapping result, which is an NSArray of MyCell Objects. I invoke the given success block and return the mappingResult.array to…
topwik
  • 3,487
  • 8
  • 41
  • 65
0
votes
1 answer

How to map a NSArray with NSStrings in the request (RESTKit)

I got a problem with a request mapping in Restkit 0.20. I want to put a NSArray with NSStrings into the request under the the key "mails" e.g.: {mails:[@"first@gmail.com",@"second@gmail.com"]} So, for this case I don't really need an object…
cloudnaut
  • 982
  • 3
  • 13
  • 35
0
votes
1 answer

RestKit - Not key value coding-compliant

I have a managed object MyEntity that I use without any problem throughout my application. @interface MyEntity : NSManagedObject @property (nonatomic, retain) NSString *code; @property (nonatomic, retain) NSNumber *def_value; @property (nonatomic,…
Pierre de LESPINAY
  • 44,700
  • 57
  • 210
  • 307
0
votes
2 answers

How to load image to collectionview from url obtained from json

I have an IOS app that is using RestKit to pull json formatted data from a server into a CoreData Entity. One of the attributes in the data is a URL for the image associated with the particular article. I'm trying to load that image to my…
Ben
  • 967
  • 3
  • 9
  • 23
0
votes
1 answer

RestKit 0.20 Post Array Json issues

This is the json that I need to post to services. { "deviceToken":"asdfasdfasdf", "alarm": [ { "start" "8:30", "end": "9:30", "line": "156", "code": "xxxafsdfasdf", "station": "asdfa", "stationLeft": 5, "available":…
wade huang
  • 1,435
  • 2
  • 11
  • 7
0
votes
1 answer

Restkit 0.20 objects are not mapped after getting json response

I'm using RestKit 0.20. I'm trying to download the json response from the local rails application and save it to core-data. I tried to follow https://github.com/RestKit/RKGist/blob/master/TUTORIAL.md and everything worked fine. I wanted to use this…
hemanth
  • 189
  • 2
  • 13
0
votes
1 answer

406 when uploading image from RestKit to RoR backend

I'm having a serious problem and searched for many hours without finding a solution. I have a backend server using Ruby of Rails and paperclip for image saving. The image upload works fine from the browser, POSTing to /pictures But when I try to…
Loïc Gardiol
  • 361
  • 3
  • 7
0
votes
1 answer

Custom request mapping on collection with RestKit 0.20

I'm trying to find a way to properly map a collection of objects to a JSON dictionary with a specific format. I have an object with the following interface (partial): @interface Reward : NSObject ... @property (nonatomic, copy) NSString*…
Loïc Gardiol
  • 361
  • 3
  • 7
0
votes
1 answer

Passing managedObjectContext via presentViewController

I am trying the "pass the baton" method for passing the managedObjectContext (MOC) thru multiple views. I have it successfully passed to the rootViewController. From there I move to a tabBarController via presentViewController. I can't seem to…
Ben
  • 967
  • 3
  • 9
  • 23
1 2 3
48
49