Giter Site home page Giter Site logo

error in GameScene.swift about flappyswift HOT 7 CLOSED

lhlpasser avatar lhlpasser commented on September 26, 2024
error in GameScene.swift

from flappyswift.

Comments (7)

lhlpasser avatar lhlpasser commented on September 26, 2024

issue fixed.

override func touchesBegan(touches: Set, withEvent event: UIEvent) {....}

from flappyswift.

azpery avatar azpery commented on September 26, 2024

FlappyBird/GameScene.swift:206:41: Reference to generic type 'Set' requires arguments in <...>
I get this error when I replace the code line

from flappyswift.

MaddTheSane avatar MaddTheSane commented on September 26, 2024

You have to tell Swift what the Set type is. In this case, I think it's just Set<AnyObject>.

Edit: nope, it's Set<NSObject>.

from flappyswift.

azpery avatar azpery commented on September 26, 2024

It was indeed expecting Set thanks :)
But now i've got an error In AppDelegate.swift with the function didFinishLaunchingWithOption.. I believe it expects something more.

Edit: I Just deleted the function to resolve it ^^

from flappyswift.

stoneyzhang avatar stoneyzhang commented on September 26, 2024

@azpery how did u solve this issue? i still have error as "FlappyBird/GameScene.swift:206:41: Reference to generic type 'Set' requires arguments in <...>"

from flappyswift.

azpery avatar azpery commented on September 26, 2024

You have to tell what type the Set is :

Set<NSObject>

from flappyswift.

jashmenn avatar jashmenn commented on September 26, 2024

Fixed in 4e94e7b and friends

from flappyswift.

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.