In my CGFloat wrapper Im getting an error Returning CGFloat (aka Double) from a function result type CGfloat aka double take the address with &
+(CGFloat*)pointData;
//
+(CGFloat *)pointData{
NSInteger savedInt = [[NSUserDefaults standardUserDefaults] integerForKey:@"savedPointForText"];
CGFloat textPoint = (CGFloat)savedInt;
if(textPoint <1) {
textPoint = 18.0;
}
return textPoint;
}
If I do return &textPoint;
I get a warning that address of stack memory with local variable "textpoint" returned