ios - How do you return a struct like CLLocationCoordinate2D from a class method properly? -


this question uses cllocationcoordinate2d example, applies other structs well, such cgpoint (although ones automatically included).

i want use cllocationcoordinate2d return value in class method. if object write following @ top , fine, long .m file had reference corelocation.h

@class classname 

is there equivalent way of telling compiler not worry struct without re-declaring or importing header file class' header file?

i not want import corelocation.h header file, since mean every file imports header file inherit corelocation.

thanks

i'm not totally getting point why not want import corelocation, cllocationcoordinate2d declared in corelocation.h. i'm not aware method @class struct , don't think exists since struct c types.
can create own class wraps cllocationcoordinate2d or return nsvalue it, or (why not?) dictionary.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -