Closed olegbragin closed 7 years ago
Using the index
as the tag definitely won't work. Use the same tag value for every driverView.
This line looks a little odd to me, but I assume this is category method you've added to UIView?
[view addShadowToView:driverView withCornerRadius:defaultCornerRadius withShadowOpacity:0.15f];
The rest seems OK to me.
Yep, that is a category method. I need a shadow only on parent view. Switched to use a constant tag = 1. Became a bit better, but still after reload seems something is broken. I see other people having a similar issue with view constraints, they're just gone probably. And still the resiingView is nil always, so I recreate a view every time. Is it because I have only 1 item in carousel for now?
I've figured out the markup issue. Turns out it has something o do with the Xcode 8 .xib file, Described here http://stackoverflow.com/questions/39578530/since-xcode-8-and-ios10-views-are-not-sized-properly-on-viewdidlayoutsubviews
Got everything working! thanks for the help! Turned out I needed to initialise the carousel later then viewDidLoad.
Hi Nick, trying to implement that method, here it is:
I'm having several issues with it:
Could help me to figure that out? Thanks in advance!