Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
获取属性协议数组
NSString *propertyAttributes = [NSString stringWithUTF8String:property_getAttributes(property)];
NSArray *propertyAttributesStringArray = [propertyAttributes componentsSeparatedByString:@","];
NSString *propertyClassInformationString = classTypeStringArray[0];
NSString *propertyClassTypeString = [propertyClassInformationString componentsSeparatedByString:@"\""][1];
NSString *propertyClassProtocolsString = [propertyClassInformationString componentsSeparatedByString:@"\""][2];
propertyClassProtocolsString = [classTypeString stringByReplacingOccurrencesOfString:@">" withString:@""];
propertyClassProtocolsString = [classTypeString stringByReplacingOccurrencesOfString:@"<" withString:@""];
NSArray *propertyClassProtocolsArray = [propertyClassProtocolsString componentsSeparatedByString:@","];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.