nicklockwood / iCarousel

A simple, highly customisable, data-driven 3D carousel for iOS and Mac OS
http://www.charcoaldesign.co.uk/source/cocoa#icarousel
Other
12k stars 2.58k forks source link

Using view from nib doesn't hold constraints #757

Open the-freshlord opened 7 years ago

the-freshlord commented 7 years ago

When supplying a view, the components in the view do not stay in the same spot with constraints. Some of them move toward the bottom left. Any ideas?

sarrathy commented 7 years ago

same issue . Kindly help

pravin-ramdhani commented 7 years ago

same issue here, what I did is removed all constraint from for all the components from custom view and it works for me. I think transform offset creating this issue.

the-freshlord commented 7 years ago

I did that as well and it works for me.

zabolotiny commented 7 years ago

Same thing happened to me.

gfpoliva commented 7 years ago

Same here! My workaround was do what @pravin-ramdhani said. Probably the transform offset is messing up with the constraints.

machukas commented 7 years ago

I solved it with reloadData() in viewWillAppear

vinicemanuel commented 7 years ago

I solved it with reloadData() in viewWillAppear too, but I have no idea for why it work

sanjams2 commented 7 years ago

Getting this as well

matsmorot commented 7 years ago

Confirmed in iOS 10.2. reloadData() solution works for me too.