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

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -