Sorry all, i am new to ObjectiveC-> In other programming languages, i like to cast the variable i am working with when in a loop. I have a class (FeedItem) with a property 'description' . I know that my NSMutableArray (menuList) has 15-20 of these FeedItem pushed earlier in my code (i can also see them in the debugger). However, when i prepare to do this loop, i get an error: "error: incompatible types in initialization"
why can't i do this?
again, i am new to objective c, so is it my loop syntax?
why can't i do this?
Code:
for(int b =0;b<[menuList count];b++)
{
FeedItem *fi = menuList[b];
NSLog(@"----->@%",fi.description);
}
again, i am new to objective c, so is it my loop syntax?