Closed meysam-h closed 8 years ago
Example, please.
i want to do like this:
let className = "myProjectName.Person"
let aClass = NSClassFromString(className)
let ClassBuild = aClass.Builder().build()
ClassBuild.name = "Name"
NSClassFromString - worked only with child of NSObject. You can use solutions with dynamicType.
Any solution on this ?
Version of protoc (
protoc --version
)3.0
Version of ProtocolBuffers.framework
2.4.1
.proto
file to reproduceDescription
i want to create object of my proto, with name and use its functions (dynamic instance), what can I do?!