Ios7 iCarousel在Xcode 5.0.2中,一个视图控制器中的多个旋转木马没有获得旋转木马';例如

Ios7 iCarousel在Xcode 5.0.2中,一个视图控制器中的多个旋转木马没有获得旋转木马';例如,ios7,xcode5,icarousel,Ios7,Xcode5,Icarousel,在Xcode 5.0.2中创建了一个项目,在一个viewcontroller中包含故事板、自动布局和3个carrousel 在viewcontroller中导入的icarousel 已连接的委托,数据源 将转盘连接到iCarousel的不同对象 @property (nonatomic, strong) IBOutlet iCarousel *carousel1; @property (nonatomic, strong) IBOutlet iCarousel *carousel2; @prop

在Xcode 5.0.2中创建了一个项目,在一个viewcontroller中包含故事板、自动布局和3个carrousel

  • 在viewcontroller中导入的icarousel
  • 已连接的委托,数据源
  • 将转盘连接到iCarousel的不同对象

    @property (nonatomic, strong) IBOutlet iCarousel *carousel1;
    @property (nonatomic, strong) IBOutlet iCarousel *carousel2;
    @property (nonatomic, strong) IBOutlet iCarousel *carousel3;
    
  • 当我运行projectdelegate时,datasource工作正常,但当我尝试检查实例时,如下所示

        - (NSUInteger)numberOfItemsInCarousel:(iCarousel *)carousel
        {
            //return the total number of items in the carousel
            //return the total number of items in the carousel
            NSLog(@"Carousel%@", carousel);
                NSLog(@"carousel1%@", carousel1);
            NSInteger itemsTMP;
            if (carousel == self.carousel1)
            {
                itemsTMP = [_items count];
            }
    
    在nslog中,它对于转盘1显示为NULL


    所有的连接似乎都很完美。无法找出错误。

    我不想在这里夸大明显的错误,但在carousel1属性前面没有“*”这一事实将是我要执行的第一个补救措施

    将RestKit添加到项目中没有问题。还是不确定。如何解决这个问题。
    遵循以下步骤解决此问题:
    1.已删除旧视图和关联的视图控制器
    2.创建了新视图、新控制器。请小心连接,并在删除任何关联视图之前将其删除。 3.万岁!旋转木马成功了


    但是上面看起来像是一个解决办法,但仍然没有找出问题所在。

    @Mija:在发布查询之前,我不得不更改对象的名称,但实际代码有“*”。没有找到它。谢谢编辑了它。通过只包含伊卡鲁塞尔,又创建了一个项目,看起来效果不错。但在当前项目中,RestKit是使用CoCoapod添加到项目中的。无法找出错误。2013-12-13 15:55:54.311旋转木马[26002:70b]旋转木马:2013-12-13 15:56:34.410旋转木马[26002:70b]旋转木马:旋转木马框架与故事板视图中显示的视图相同。但当检查名称时,它不匹配。