Click here to Skip to main content
16,016,425 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi I impored ARC but I got same error, I am using xcode 4.6 .
Thanks for your help

@implementation any
-(void)viewDidLoad{
contentArray=[[NSArray arrayWithObjects:@"a",@"b",@"c",Nill]retain];//error ARC forbids explicit message send of''retain'
[super viewDidLoad];
}
Posted

1 solution

contentArray=[NSArray arrayWithObjects:@"a",@"b",@"c",Nill];//error ARC forbids explicit message 


i.e. the message tells you ARV forbids retain, so don't specify retain?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900