Giter VIP home page Giter VIP logo

Comments (6)

nofelmahmood avatar nofelmahmood commented on August 15, 2024

No Problem. I am glad you liked it.
Kindly check out the demo project again and try to work out something from there.
btw Still I'l consider simplifying the read me of the repository. :)

from seam.

apoorvmote avatar apoorvmote commented on August 15, 2024

Also because I only know swift & never learned objective C. So I am bit confused.

And learning from your code is my top priority at the moment. I am spending 6-8 hours per day reading your code & Apple documentation.

If you create tutorial then I will learn faster. But one way or the other I will reverse engineer your code.

from seam.

nofelmahmood avatar nofelmahmood commented on August 15, 2024

I appreciate your enthusiasm. Currently I had plans to write how I implemented the sync part. I started it and I think I might complete it in a day or two. Best of luck in learning swift but my advice for you is Think Big, Start Small. First consider doing some small stuff in swift and then build up from there.
I'l post the link to the article (Related to sync) on this issue when I am finished till then best of luck :)

from seam.

apoorvmote avatar apoorvmote commented on August 15, 2024

Yeah its frustrating. I studied core data from e book & cloud kit from course I purchased. But they don't teach you how to combine them together.

I was like why the hell did I buy this course. The only reason I bought it so I can use them together in app I am building.

I have been studying swift for about 8 months & core data / cloud kit for last 3 months. Hopefully I will learn this quicker.

Also please don't forget to post link here when you create tutorial.

from seam.

apoorvmote avatar apoorvmote commented on August 15, 2024

Your app actually has one issue. When you delete item the app crashes.
When you delete one row you didn't delete from tasks array.
You just need to add following line

self.tasks.removeAtIndex(indexPath.row)

from seam.

apoorvmote avatar apoorvmote commented on August 15, 2024

I have found a code that would tell you whether user changed their iCloud account or logged out of iCloud in middle of using the app.

func applicationDidBecameActive(notification:NSNotification) {

    println("Application is active")

    NSNotificationCenter.defaultCenter().removeObserver(self, name: NSUbiquityIdentityDidChangeNotification, object: nil)

}

func applicationBecameInactive(notification:NSNotification) {

    println("Application is inactive")

    NSNotificationCenter.defaultCenter().addObserver(self, selector: "handleIdentityChange:", name: NSUbiquityIdentityDidChangeNotification, object: nil)

}

func handleIdentityChange(notification:NSNotification) {

    println("this is working")

    let fileManager = NSFileManager()

    if let token = fileManager.ubiquityIdentityToken {

        println("New token is \(token)")

    }
    else {

        println("User has logged out of iCloud")

    }

}

Waiting for your sync tutorial. Please create it soon. Its very difficult to understand otherwise.

from seam.

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.