I'm new to Objective C
I tried using a simple struct
and got
arc forbids objective-c objects in struct
Looking up ARC, it looks like this is the specification that defines Objective C syntaxt - is that correct?
Secondly, how do I go about using struct
if it's not allowed?
Thank you!
Edit: Some code as a sample
@implementation Cities {
// The goal is to have a struct that holds information about a city,
// like when a person started and ended living there.
// I was trying to make this struct an instance variable of the Cities
// class
// XCode doesn't like the below struct definition
struct City
{
NSString *name;
int *_startYear;
int *_endYear;
};
}