Hey guys I have a UIImage that should move to a position which the CGPoint tells.
My code:
person1 = UIImageView(frame: CGRectMake(corX, corY, 25, 25))
What I want to do is to split the CGPoint in two numbers which initialise corX and corY. Hopefully you can help me.
-Lukas
CGPointhas propertiesxandy:Alternatively create the
CGRectdirectly from your point as theoriginand a givensize: