Giter VIP home page Giter VIP logo

swiftyplistmanager's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

swiftyplistmanager's Issues

Not working for dates

Every time I load a date it returns nil, even after a successful save

SwiftyPlistManager.shared.save(freeTrialExpirationDate, forKey: "keyDate", toPlistWithName: "data") { (err) in
             if err == nil {
               print("Value successfully saved into plist.")
             }
            
         
           }


var d = SwiftyPlistManager.shared.fetchValue(for: "keyDate", fromPlistWithName: "data") as? Date

Does not save edit or add new values

Hello,

nice work you have done! :) I get always a "An Action has been performed..." notification but the PlistManager didn't save any values, but recognized when I'm saving an existing one. Where could the problem be?

Thanks!   
 ✌️

Plist with array as a root

Hey,

Thanks for your good repo.

I have a question:
SwiftyPlistManager.shared.addNew will add new value to a plist with dictionary as a root. In my case I have a plist with array as a root.

How can I add new values to a plist with array as a root?

Cannot Fetch Root Element

Hi, thanks for developing this - I love it.

Just a quick question, I'm using the following line:

let allAnimals = SwiftyPlistManager.shared.fetchValue(for: "Root", fromPlistWithName: "WildlifeData")

to fetch the entire dictionary of elements, but I am getting the following error message:

WARNING: The Value for key 'Root' does not exist in WildlifeData.plist! Please, check your spelling.

FYI, my plist looks like this:
screen shot 2017-10-23 at 10 29 10

not saving

[SwiftyPlistManager] File not written successfully
[SwiftyPlistManager] fileNotWritten

SwiftyPlistManager.shared.addNew() i used this function to save value in plist
SwiftyPlistManager.shared.getValue() used for get the data from plist.

I tried but I'm getting above error kindly do needfully

operation couldn't be completed, .fileUnavailabe

Afew hours i ago swiftyplistmanager was fine, it wrote around 13K records to me, but now it returns an error..

my plist is an array of dictionaries and it has around 13919 records, but getting that error

Plist of type Array instead of Dictionary?

First of all, great tutorial!

In fact, one of the best and detailed tutorials in helping us get started with using plist files!

I'm trying to use this in my own app, but the problem I have is that my plist files are of type Array, not Dictionary.

untitled

How would I be able to add a value to the array using SwiftyPlistManager.shared.addNew(dic, key: firstKey, toPlistWithName: dataPlistName) if there is no associated key?

Swift 4.2 Update

I'm currently receiving the following error with CocoaPods after updating to Swift 4.2:

untitled

Thanks!

What Cause An Error "fileNotWritten"?

Hi, I just installed your SwiftyPlistManager pod and tried to write a String data into the desired plist file. I get an error "fileNotWritten", what cause this error? I tried to write String data into String field. The key name is also correct. I only get this description in debug console:

SwiftyPlistManager] File not written successfully
[SwiftyPlistManager] fileNotWritten
[SwiftyPlistManager] An Action has been performed. You can check if it went ok by taking a look at the current content of the 'Others.plist' file:
[SwiftyPlistManager] { "$archiver" = NSKeyedArchiver; "$objects" = ( "$null", "Fran\U00e7ais" ); "$top" = { "Selected Language" = "<CFKeyedArchiverUID 0x1c442b940 [0x1b379e538]>{value = 1}"; }; "$version" = 100000; }

It doesn't explain to me why it shows the "fileNotWritten" error.

Can you help me?

Thank you.

save dictionary

HI, thank you for the great package. However, I encounter some problems when i try to save the dictionary to plist using the package.

WARNING: You are saving a 'Dictionary<String, Any>' typed value into a '__NSCFDictionary' typed value.

In the same code , i see saving dictionary to the plist with the same type, I wonder what is the issues here.

Thank you

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.