I have the type that is specified in my Prefix.pch file.
typedef NS_ENUM(NSUInteger, ServerType) {
ServerType0 = 0,
ServerType1,
ServerTypeCount
};
I have a method declaration like this:
+ (NSArray *)allServersForType:(enum ServerType)serverType;
But I warn
"The ad" enum ServerType "will not be visible outside this function"
and worse when I try to convey it like this:
NSArray *servers = [Server allServersForType:ServerTypeCount];
I get the error "Argument type" enum ServerType "incomplete"
What am I doing wrong?
Thanks in advance.
Rob
source
share