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

What is the purpose of offScreenView? #1

Open
liuxuan30 opened this issue Apr 3, 2015 · 8 comments
Open

What is the purpose of offScreenView? #1

liuxuan30 opened this issue Apr 3, 2015 · 8 comments

Comments

@liuxuan30
Copy link

I have read the code, and I am loosing the understanding of the reason for offScreenView. what I saw is updating a view's frame, but why not direclty utilize greenView's frame?

@smileyborg
Copy link
Owner

Hey Xuan,

Did you watch the Adaptive Auto Layout talk that this code was part of? If not, you'll want to watch that, or at least the part that covers this Offscreen Layout technique (here's the relevant portion).

Let me know if you still have any questions.

@liuxuan30
Copy link
Author

Sorry I did, but the volume is not very loud so I don't get much information.

@smileyborg
Copy link
Owner

What is your question then? I'm not sure I understand what you are asking.

@liuxuan30
Copy link
Author

I am not sure why to use offScreen views, as the talk video not explained it well, kind of noisy and not very clear what you said

@smileyborg
Copy link
Owner

This is an advanced technique that lets you use Auto Layout to do things that are traditionally impossible to do. Offscreen views are used to perform a number of layout calculations quickly, and then store the outputs of those calculations (view frames) for later use.

If you are just getting started with Auto Layout, this is not something you should or need to worry about.

@liuxuan30
Copy link
Author

Thanks, I having been using Auto layout for a while, and I want to go to the next level. Could you give some links or docs that explains this advanced technique?

@smileyborg
Copy link
Owner

Sorry, I don't have any documentation or links beyond the video of this talk and the slides. If I get some time to write up a description I will include it in the README of this project.

@liuxuan30
Copy link
Author

Alright, looking forward your README :)

Repository owner deleted a comment Aug 23, 2024
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

2 participants