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
CGPoint
has propertiesx
andy
:Alternatively create the
CGRect
directly from your point as theorigin
and a givensize
: