ios - Are view.superview.layer and view.layer.superlayer the same? -


for uiview view, view.superview.layer same view.layer.superlayer ?

in case not same?

they should same. there way weird things, swizzle superlayer getter, or override layer getter, or whatever, if you're 1 controlling uiviews, shouldn't have worry strange cases. can nsassert() case if you're paranoid.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -