Code Monkey home page Code Monkey logo

Comments (6)

alexdd55 avatar alexdd55 commented on May 18, 2024

i might be wrong, but as far as i know, this is not possible, because NSUserDefaults can not take this type.

from swifter.

VasuLaroiya avatar VasuLaroiya commented on May 18, 2024

Is there any way to save the data at all?

from swifter.

alexdd55 avatar alexdd55 commented on May 18, 2024

depends. in NSUserDefault, i would stote user credentials.
for a bigger amount of data i use realm.io. its very easy to use and fast.

from swifter.

VasuLaroiya avatar VasuLaroiya commented on May 18, 2024

i tried realm.io but it would let me save the [JSONValue] result i get

from swifter.

mattdonnelly avatar mattdonnelly commented on May 18, 2024

The JSON class isn't really designed to be persisted. It's main purpose is to make it easier for you to access elements within the data returned by Twitter. But if you'd like to persist this data I'd suggest writing classes to represent the information you'd like to store and using something like core data to store them.

I might add an easier way to do this in the future, but don't have time right now

from swifter.

zntfdr avatar zntfdr commented on May 18, 2024

Answered.

from swifter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.