ios - Error "$T5??' does not have a member named 'Generator'" in Swift? -


I'm trying to use allContactedBodies () in Swift but I get the error I am '$ T5 ??' Class 'generator' :

class sensation: sqnd {override init} {super intrate ()}

  expected init (Coder: NSCoder) {fatalError ("NSCoding is not supported")} init (Size: CGSize) {// initial size super.init () / physical properties self.physicsBody = SKPhysicsBody (rectangleOfSize: size) self.physicsBody?. influenced? Bigverity = false self. PhysicsBody ?. Categicbitmask = ColliderType.Vision.toRaw () self.physicsBody? .collisionBitMask = 0 self.physicsBody? .contactTestBitMask = ColliderType.Wall.toRaw () self.hidden = true} Fencon Contact () - & gt; For the body: for Bob: self.physicsBody in the object? .allContactedBodies () {// error return here is true} return false}}    

How can I fix this I can use all the contracted bodies () ?

self. PhysicsBody? .all related tasks () gives an alternate return, so due to alternative channeling it makes the whole expression optional. You can either use the fusion operator in zero, in case the self.physicsBody is zero to use empty array : body. anyObject in physicsBody? .allContactedBodies) ?? <] If the return is wrong then use it to achieve the physical science body in this case, if "let's go"

or "let's go."

  If PhysicsBody = self.physicsBody {For Body: Any Objectbody in Physics.Older Integrated Bodies (Return)} Return Returns True} Other {Return False}  < / Pre>  

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -