小编ctw*_*ctw的帖子

ARC错误:实例消息的接收器类型未声明带选择器的方法

我收到这个我无法弄清楚的错误.

错误:自动引用计数问题:实例消息的接收器类型"pageAppViewController"未声明带有选择器"createContentPages"的方法

我在下面发布了我的代码.createContentPages我的班上有一个叫做的方法pageAppViewController.这意味着什么以及导致它的原因是什么?

//  contentViewController.m

#import "contentViewController.h"
#import "pageAppViewController.h"

@implementation contentViewController

@synthesize theImageView, dataObject;
@synthesize image;

- (void) viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];

//error occurs on this next line    
pageAppViewController *newContent = [[pageAppViewController alloc] init];
self.image = [newContent createContentPages];
[self.theImageView setImage:  ((pageAppViewController *) [self.image objectAtIndex:0]) .images];


}

error: Automatic Reference Counting Issue: Receiver type 'pageAppViewController' for instance message does not declare a method with selector 'createContentPages'


//
//  pageAppViewController.m

#import "pageAppViewController.h"

@implementation pageAppViewController
@synthesize pageController;

@synthesize bookContent; …
Run Code Online (Sandbox Code Playgroud)

iphone objective-c ios ios5 automatic-ref-counting

3
推荐指数
1
解决办法
5106
查看次数

标签 统计

automatic-ref-counting ×1

ios ×1

ios5 ×1

iphone ×1

objective-c ×1