NSString *className = self.classNameArray[randomNumber];
Class viewClass = NSClassFromString(className); //根据类名称得到类
id view = [[viewClass alloc] initHomeTemplateViewWithArray:arr delegate :delegate]; //初始化的方法所有需要随机的view都一样
2022-11-01 22:13:48
NSString *className = self.classNameArray[randomNumber];
Class viewClass = NSClassFromString(className); //根据类名称得到类
id view = [[viewClass alloc] initHomeTemplateViewWithArray:arr delegate :delegate]; //初始化的方法所有需要随机的view都一样
下一篇:2021-10-12