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

Button Bottom View #13

Open
capitanomikejobs opened this issue Dec 10, 2014 · 2 comments
Open

Button Bottom View #13

capitanomikejobs opened this issue Dec 10, 2014 · 2 comments

Comments

@capitanomikejobs
Copy link

hello, I wanted to ask if you can add a button at the end of the view. I attach a screenshot.
I hope to help
Thank you very much

img_0573

@iltercengiz
Copy link

Here's a fork: https://github.com/iltercengiz/ParallaxBlur
I have made mainScrollView property public and instead of assigning it to the view property of view controller, I have added is as a subview. Also there are 4 NSLayoutConstraint properties, each of them attaches mainScrollView to the view from both sides with 0 distance.
If you're using auto-layout from the start, in your subclass' -viewDidLoad method, just remove mainScrollViewBottomToSuperView constraint from self.view and add your button from storyboard or programmatically and add the needed constraints (i.e. a constraint from mainScrollView's bottom to top of button),
OR
Adjust mainScrollViewBottomToSuperView's constant property according to the button's height.
Hope this helps.

@pyro2927
Copy link
Owner

@iltercengiz, I'm doing mostly Rails development these days and not a ton of iOS work. If you're interested I can give you direct commit access to this repo to merge in your changes.

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

3 participants