Skip to content
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

Question: Why using parentView frame instead of UIScreen frame ? #4

Open
Aximem opened this issue Mar 24, 2017 · 0 comments
Open

Question: Why using parentView frame instead of UIScreen frame ? #4

Aximem opened this issue Mar 24, 2017 · 0 comments

Comments

@Aximem
Copy link

Aximem commented Mar 24, 2017

Hi,

Thanks for your pod, very usefull why are you using parentView frame instead of UIScreen frame ?

I means instead of :
imageV.frame = CGRect(x: 0, y: 0, width: (parentView?.frame.width)!, height: (parentView?.frame.width)!)
imageV.center = (parentView?.center)!

Why not doing this ? :
imageV.frame = CGRect(x: 0, y: 0, width: self.bgView.frame.width, height: self.bgView.frame.width)
imageV.center = self.bgView.center

I forked your repo but maybe you did this on purpose, can you tell me in which case this could lead to issues ?

TY

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant