Just wondered if anyone could help, im getting the warning above with the following code:
.h
int *life;
@property (nonatomic, assign) int *life;
.m
self.life = 100;
and
error: incompatible type for argument 1 of ‘setPercentage:’ on
self.progressTimer.percentage = self.life;
Just wondered if anyone could help
Thank you
Don’t use a pointer for basic datatypes, unless absolutely required (most often you won’t in Objective-C).
Declare your int like this:
And your issue should be solved.