data exchange in iphone question.

Discussion in 'iOS Programming' started by TheDozer, Nov 15, 2011.

  1. TheDozer macrumors newbie

    Joined:
    Oct 15, 2009
    #1
    Hi

    What is the best way to exchange data between a mysql server and an app.

    Please advise.

    BR a Noob developer
     
  2. jnoxx macrumors 65816

    jnoxx

    Joined:
    Dec 29, 2010
    Location:
    Aartselaar // Antwerp // Belgium
    #2
    If it's online, via Restcalls (or Restkit if you are lazy), then to Core Data, and bam. go.
     
  3. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
  4. TheDozer thread starter macrumors newbie

    Joined:
    Oct 15, 2009
    #4
    hm
    so for web services Restkit would do the trick

    //
     
  5. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #5
    It would. But I find RestKit extremely bloated. I believe it adds over 40MB to your project bundle. I prefer ASIHTTPRequest and sometimes even just regular NSURLConnection.
     
  6. TheDozer thread starter macrumors newbie

    Joined:
    Oct 15, 2009
    #6
    ok I´m starting to get this i think :)

    what about JSON frame work

    //
     
  7. jnoxx macrumors 65816

    jnoxx

    Joined:
    Dec 29, 2010
    Location:
    Aartselaar // Antwerp // Belgium
    #7
    Depends what you want, JSON or XML..
    And for ResKit, it does add alot, if you add everything you don't need neither. In the end, the app my team and I made (Devoxx 2011 on iPad store), uses RestKit, and even after all the code and high res images, our IPA is less then 6 mb. So I don't really think about that. (and we didn't delete everything we didn't need). We opted for that option, since we find ATIHTTPRequest.. well, not that good after all ;p
     
  8. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #8
    Did you install RestKit using these directions?: https://github.com/RestKit/RestKit/wiki/Installing-RestKit-in-Xcode-4.x
     
  9. jnoxx, Nov 16, 2011
    Last edited by a moderator: Nov 16, 2011

    jnoxx macrumors 65816

    jnoxx

    Joined:
    Dec 29, 2010
    Location:
    Aartselaar // Antwerp // Belgium
    #9
    The second developer took care of the RestKit, so I don't know.
    But I did work with the HTTPRequest before, and didn't love it all that much.
    Since RK is a robust framework, allthough relying on 3rd party software isn't allways the way to go though.
    But for the project it fitted our needs, and it worked out great
     
  10. TheDozer thread starter macrumors newbie

    Joined:
    Oct 15, 2009
    #10
    Thank you all so much on the input.

    I have two other thoughts a little off topic..

    1. Say that I´m don with my app and want say 30 friend to test it before it goes on app store how is this done??

    2. Were do I find the fees that apple take for app purchase and in app purchase
    I have surfed around in developer.apple.com with no luck..

    //
     
  11. jiminaus macrumors 65816

    jiminaus

    Joined:
    Dec 16, 2010
    Location:
    Sydney
    #11
    Ad hoc distribution. See the iOS App Development Workflow Guide for details.

    The details are in the iOS Paid Application contract. Log into iTunes Connect with your developer username and password and request a contract. You don't need to accept it at this stage, you can just read it.
     

Share This Page