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

Various improvements + Adding shortcuts for labels & images #2

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

calimarkus
Copy link
Contributor

Hey Charles,

thanks for your Linear Layout View! I built something similar some time ago. But your approach (with wrapped LayoutItems) is better than mine. Still I had some Ideas, that would also improve your layout class. I would love, if you would merge them.

There are 6 commits, the commit message explains most of them. But here are some more comments:

e39bf56 fixed missing scroll indicators:
The ScrollIndicators are actual subviews of a UIScrollView, so you remove them in removeAllItems currently.

ee2482a respect scrollView content insets:
The sizes are currently wrong, if so. uses insets on the scrollView

cda57ed performance increase | only relayout, if needed:
All of your layout code gets calles on every scrolling movement (change in contentOffset). This results in a quite bad scrolling performance (depending on device and count of layoutItems)

98ac5a2 added adding shortcuts for text & images:
I like to have a fast way to display some images and texts in a UIScrollView - if you don't think this should be part of your class, leave this commit out. But I like it very much.

Cheers Markus (@jaydee3 on twitter)

@calimarkus
Copy link
Contributor Author

Also I would suggest to rename your class to CSLinearLayoutScrollView or CSFlowLayoutScrollView (Mine was JDFlowLayoutScrollView ,) ). What do you think? 👍

@scalessec
Copy link
Owner

Hey Markus, thanks for this. I haven't had a free moment to look through in detail, but I do plan on merging some of your work.. probably this weekend. Cheers.

@calimarkus
Copy link
Contributor Author

Yes great. If you have any questions or other opinions on the code, talk to me ✌️

@wm-j-ray
Copy link

wm-j-ray commented May 5, 2013

Well both you guys are smarter than I am. I'm trying to get items added to autoresize on rotation but am not having any success.

Any pointers would be greatly appreciated and thanx in advance.

@calimarkus
Copy link
Contributor Author

Anything new here? :)

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

Successfully merging this pull request may close these issues.

3 participants