Comments (7)
issue fixed.
override func touchesBegan(touches: Set, withEvent event: UIEvent) {....}
from flappyswift.
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.
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.
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.
@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.
You have to tell what type the Set is :
Set<NSObject>
from flappyswift.
Fixed in 4e94e7b and friends
from flappyswift.
Related Issues (20)
- Th
- [Critical] 22 build issues in Xcode 6.0.1 HOT 6
- Bird can fly off the screen HOT 2
- dataWithContentsOfFile error HOT 5
- In the new version toRaw() is replaced by rawValue HOT 4
- License? HOT 1
- GameViewController.swift and 3 errors HOT 3
- Use of unresolved identifier 'clamp' HOT 1
- Auto Layout on different devices HOT 2
- Black Bars on 4.7" and 5.5" screens HOT 1
- Code Compile Error HOT 2
- Error in Swift 3.0 HOT 1
- Swift 3 @objc inference in Swift 4 mode is deprecated.
- Copyright Dates
- Is this OK if I make some changes in the game & publish it to the AppStore? HOT 2
- No page to direct into the game HOT 1
- Animation stops after reset HOT 1
- How to implement game over screen/score board?
- You can over jump the pipes HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flappyswift.