摘要:
uiimage增加分类,重写imagebyapplyingalpha,在需要导航栏透明的地方导入,使用self.navigationcontroller.navigationbar setbackgroundimage forbarmetrics为导航栏添加图片即可。 阅读全文
摘要:
封装字典转模型: 只需传入model名和json数组,用runtime动态的为每个属性赋值,导入头文件objc/runtime,首先,记录model类中的成员变量数,然后class_copypropertylist整体返回objc_property_t类型的指针数组,里面包含了对应的类的各个属性。其 阅读全文