《iOS Core Animation Advanced Tec

2016-12-02  本文已影响39人  ShannonChenCHN

3. Layer Geometry

Let no one unversed in geometry enter here.
——Sign above the entrance to Plato's Academy

UIView and CALayer coordinate systems (with example values).png The effect that rotating a view or layer has on its frame property.png The effect that changing the anchorPoint has on the frame.png The four images that make up the clock face and hands.png Laying out the clock views in Interface Builder.png The clock face, with misaligned hands.png The clock face, with correctly aligned hands.png
- (CGPoint)convertPoint:(CGPoint)point fromLayer:(CALayer *)layer;
- (CGPoint)convertPoint:(CGPoint)point toLayer:(CALayer *)layer;
- (CGRect)convertRect:(CGRect)rect fromLayer:(CALayer *)layer;
- (CGRect)convertRect:(CGRect)rect toLayer:(CALayer *)layer;
上一篇下一篇

猜你喜欢

热点阅读