Skip to content

Commit e8a45c5

Browse files
committed
Update README.md
1 parent f434757 commit e8a45c5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ like: (0.5, 0.5) ->(0.5, 1)
6767

6868
Frame:
6969

70-
There are many ways to do this: [link](http://stackoverflow.com/questions/1968017/changing-my-calayers-anchorpoint-moves-the-view)
70+
There are [many ways](http://stackoverflow.com/questions/1968017/changing-my-calayers-anchorpoint-moves-the-view) to do this:
7171

7272
subView.frame = frame
7373
subView.layer.anchorPoint = CGPointMake(0.5, 1)
7474
subView.frame = frame
7575

7676
AutoLayout:
7777

78-
Discussion on stackoverflow: [link](http://stackoverflow.com/questions/12943107/how-do-i-adjust-the-anchor-point-of-a-calayer-when-auto-layout-is-being-used/14105757#14105757), but I find a simple way:
78+
[Discussion](http://stackoverflow.com/questions/12943107/how-do-i-adjust-the-anchor-point-of-a-calayer-when-auto-layout-is-being-used/14105757#14105757) on stackoverflow, but I find a simple way:
7979

8080
let subViewHeight =
8181
let oldConstraintConstant = centerYConstraint.constant
@@ -107,8 +107,12 @@ When the container view is vertical to screen, make the subview hidden, and afte
107107
The animation will not execute and the view just change if you execute above code in an action method, like clip a button.
108108
You could use 'CGFloat(-M_PI) * 0.99' to fix this.
109109

110+
Or, use UIView key frame animation, this transform works fine in key frame animation.
111+
110112
**To-Do List**
111113

112114
~~1.reuse card view~~
115+
113116
2.reorder card view
117+
114118
3.delete and add card view with pan gesture

0 commit comments

Comments
 (0)