Use NSNumber
literal syntax:
annotation3.lat = @( lat1 );
or create an instance the old fashioned way:
annotation3.lat = [NSNumber numberWithDouble:lat1];
Also, be sure you just want your property to use assign
(you usually want to use strong
).