NSArray initWithObjects: no download

As a test, I do the following as the first line in applicationDidFinishLaunching:

NSArray *list=[[NSArray alloc] initWithObjects:@"Andy",@"Erik",@"Aaron",nil];

After executing the string, I have null objects in the array. I do this further down the code, but I want to exclude any influence to make sure my syntax is correct. I get the same results with NSMutableArray. In the debugger, I handle the name of the array to see if it has any values.

When I click on count in the next line, I see "varaible optimized awa ... Summary":

int count = [list count];

Any suggestions why the array is not populating and why count is not returning an integer?

+5
source share
1 answer

, , count .

1) debug release. , , count . , xcode.

2) 'count' . , , , . , -, "count" , "count" , "count" .

+6
source

All Articles