Ios iCarousel以1/2高和1/2宽的偏移显示

Ios iCarousel以1/2高和1/2宽的偏移显示,ios,uiview,uiviewcontroller,indexing,icarousel,Ios,Uiview,Uiviewcontroller,Indexing,Icarousel,视图的偏移量为1/2 view.width和1/2 view.heigth,我不知道为什么。(我无法上传图像,因为我没有足够的声誉) 希望您实施了以下iCarousel代表: - (CGFloat)carouselItemWidth:(iCarousel *)carousel { return 200.0; //your expected width } - (CGFloat)carouselItemHeight:(iCarousel *)carousel {

视图的偏移量为1/2 view.width和1/2 view.heigth,我不知道为什么。(我无法上传图像,因为我没有足够的声誉)


希望您实施了以下iCarousel代表:

- (CGFloat)carouselItemWidth:(iCarousel *)carousel
   {
     return 200.0; //your expected width
   }

- (CGFloat)carouselItemHeight:(iCarousel *)carousel
   {
     return 200.0; //your expected height
   }

转盘的大小是我实例化的视图(viewWithTag:999)的大小,因此可以。问题是看起来所有视图都有偏移量。你能上传或链接快照吗?
- (CGFloat)carouselItemWidth:(iCarousel *)carousel
   {
     return 200.0; //your expected width
   }

- (CGFloat)carouselItemHeight:(iCarousel *)carousel
   {
     return 200.0; //your expected height
   }