-
Notifications
You must be signed in to change notification settings - Fork 708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
用 Swift 实现轻量的属性监听系统 #30
Comments
Demo 太久远了,bindNameListener 的实现有缺陷。 |
我是根据你Yep上面的UserDefault里面的listener写的,按你这样写确实没有问题,但是controller的deinit()不执行!等我第二次进入该控制器deinit()才被执行(一进入就被执行) |
应该是某个闭包把self持有了,不知道你的具体代码如何?注意用[weak self]
wuhongxing <notifications@github.com>于2017年4月20日 周四17:07写道:
…
我是根据你Yep上面的UserDefault里面的listener写的,按你这样写确实没有问题,但是controller的deinit()不执行!等我第二次进入该控制器deinit()才被执行(一进入就被执行)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#30 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAakCFoBjBVOacQ7nkKcAayJzm7i7dOGks5rxyBmgaJpZM4NCgKk>
.
|
我在闭包里面持有了self.namebutton导致了无法释放,我写了一个demo,地址: |
用 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
当我第二次push到ThirdViewController的时候,我再次修改他的名字和颜色第二个页面和第三个页面都没有变化,但是我发现他们的值确实是变化了,而当我pop回第一个页面设置的值才生效!
The text was updated successfully, but these errors were encountered: