我有什么遗漏或者这是Xcode中的错误吗?我甚至无法运行代码,因为我收到了错误消息。
// Class1.m
-(void)somemethod{
ViewController *viewcont = [[ViewController alloc]initWithNibName:@"ViewController" bundle:nil];
[viewcont setWhatview:self]; // here i get the error message;
}
//viewcontroller.h
@property Class1 *Whatview;
我收到错误消息:
implicit conversion of an Object to int * is disallowed in arc.