Skip to content

完善动画细节 #3

@985589477

Description

@985589477

首先我发现在执行完 bounds.size.width 动画的缩小之后,像view上添加其他view会导致偏移
我已经找到了解决的办法,在bounds.size.width的缩小动画的同时进行boudns.size.x的处理,这样就不会导致像button上添加view偏移的问题其次title的set "" 可以使用 self.titleLabel?.removeFromSuperView() 与 self.addSubView(self.titleLabel?) 来代替因为加入其他人使用的图片按钮的话,cacheTitle或者image相对麻烦

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions