I am using the following carousel pattern in IGGridview.
------------- Visible Screen --------------View1 View2 View3 View4 View5
What I need to do is to display a layer UIView from left to the right side of the IGGridView. The layer UIView should be on top of the View1, View2, View4 and View5 except View3 which is at the centre.
I need like:
Note: the height of the layer UIView is not important.
Hi!
Based on the code I was helping you with previously, you can hide/remove the layer by putting the code in the else:
if(scale < minScale)
{
additionalOffset = spacing;
}
else
// put code for layer here
Out of curiosity, what are you trying to do with the layer?
-SteveZ
I have added a gradient layer on top of the circles through the CAGradientLayer and so far it works well. Thank you Steven.
CAGradientLayer *gr = [CAGradientLayer layer];gr.frame = self.imageView.bounds;gr.zPosition = 1;[self.imageView.layer insertSublayer:gr atIndex:0];