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

Setting different UIImageViews for each thumbImage #27

Closed
wammy67 opened this issue May 23, 2019 · 4 comments
Closed

Setting different UIImageViews for each thumbImage #27

wammy67 opened this issue May 23, 2019 · 4 comments

Comments

@wammy67
Copy link

wammy67 commented May 23, 2019

it just keeps crushing when trying to assign:

self.multiSlider.thumbViews = [imageView1,imageView2,imageView3]

it gives

'Unable to install constraint on view. Does the constraint reference something from outside the subtree of the view?'

I've tried adding imageviews to view hierarchy to main view and even multislider

@wammy67
Copy link
Author

wammy67 commented May 23, 2019

can't we just have UIViews instead of UIImageViews? otherwise library works cool :)

@yonat
Copy link
Owner

yonat commented May 23, 2019

You can try this instead:

multiSlider.thumbViews[0].image = image1
multiSlider.thumbViews[1].image = image2
multiSlider.thumbViews[2].image = image3

@wammy67
Copy link
Author

wammy67 commented May 24, 2019

sounds good, doesn't work

slider hasn't changed at all.
I've made some changes and made it work, I'll try to contribute 👍 👍

@wammy67 wammy67 closed this as completed May 24, 2019
@yonat
Copy link
Owner

yonat commented Jun 1, 2019

Works for me, see the demo project in branch thumb-images

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