Reputation: 1478
I have been asked to create a method with a signature that resembles this:
- (void)updateLocation:(CLLocation**)location atInterval:(NSTimeInterval)interval untilDate:(NSDate*)finishDate;
The idea is that a user passes in the address of a variable that I update from my class. So, I need to store the location argument as an iVar, only when I try to create the iVar, I receive the error:
Pointer to non-const type 'CLLocation *' with no explicit ownership.
How do I go about resolving this?
Upvotes: 1
Views: 178
Reputation: 81868
CLLocation * __strong *
.Upvotes: 1