You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.
我子类继承了SVGAPlayer,然后在-initWithFrame:里初始化并设置self.contentMode, 但是发现总是会被覆盖成UIViewContentModeTop。由于UIView的初始化顺序是-init -> -initWithFrame: , 所以我在子类中-initWithFrame:设置contentMode之后,还会返回到-init里走了一遍-initPlayer, 所以contentMode又被设置成默认的UIViewContentModeTop了。
解决这个问题方法:
SVGAPlayer不必重载-init方法了
The text was updated successfully, but these errors were encountered: