How to adjust the frame of the containerView in linearType ICarousel View to required height from origin, But it is fixed to the middle of the view as shown in the Image, as I tried to set the frame as shown in below code.
- (UIView *)carousel:(__unused iCarousel *)carousel viewForItemAtIndex:(NSInteger)index reusingView:(UIView *)view {
UILabel *label = nil;
//create new view if no view is available for recycling
// if (view == nil)
// {
view = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, [UIObjects widthOfTheElement:267], [UIObjects heightOfTheElement:172])];
((UIImageView *)view).image = [UIImage imageNamed:[self.imagesArray objectAtIndex:index]];
// view.contentMode = UIViewContentModeCenter;
// view.backgroundColor=[UIColor yellowColor];
label = [[UILabel alloc] initWithFrame:view.bounds];
label.backgroundColor = [UIColor clearColor];
label.textAlignment = NSTextAlignmentCenter;
label.font = [label.font fontWithSize:50];
label.tag = 1;
[view addSubview:label];
if (index==0)
{
label.text = @"ramki";
}
else
{
}
return view;
}
iCarousels have various settings that let you adjust the placement, 3D angle, and other parameters of the carousel. There is a setting that lets you move the carousel up or down in its view. Check the docs.