Sunday, 15 September 2013

swift - Get object position relative to it's center, regardless of anchor point used -


Does any object have any other object center point (centered on object, centered on object) Do not have the way

  see A = UVUV (frame: Object A want to position object B. in between, CGRactMake (0, 0, 200, 400) ViewAllier.TenCorPoint = CGXTax ( 0, 1) See Layer.position.x = 40ViewAller.position.y = 100ViewB = UIView (Frame: CGRactam (0, 0, 80, 20) viewB.layer.anchorPoint = CGPointMake (1, 0.5) // How do the views of ViewB in the middle of the scene, even then what is the reference point of View A? In other words, I'm trying to figure out that someone has an algorithm or system that creates an object's position relative to an object center (between any other objects) Use to be able, whatever the ANC Then point to point or object using that time. 

Thanks


No comments:

Post a Comment