ios - CLRegion or CLCircularRegion cannot be inherited -
ios - CLRegion or CLCircularRegion cannot be inherited -
while building app based on part monitoring, find clregion have 1 attribute .identifier, need nsstring
type attribute modify part created class:
#import <corelocation/corelocation.h> @interface clcircularregionobject : clcircularregion @property nsstring *soundidentifier; @end
in part setting class create new class , pass part , add together attribute, problem regionwithsound
not recognized subclass of clcircluar region.
clcircularregion *region = [[clcircularregion alloc] initwithcenter:self.annotationview.annotation.coordinate radius:self.radius identifier:self.mysearch.text]; clcircularregionobject *regionwithsound; if ([regionwithsound iskindofclass:[clcircularregion class]]) { regionwithsound = region; regionwithsound.soundidentifier = self.alarmsound; }
ios objective-c
Comments
Post a Comment