instanceType 换成id 

 

 

使用的时候 转换一下类型

1. #import <UIKit/UIKit.h>
2.instanceType 改为id 
3. 使用 类型转换
        if let info = TBCityIconInfo.iconInfo(withText: "str", size: 20, color: UIColor.red) as? TBCityIconInfo{
            UIImage.icon(with: info)
        }

  

posted on 2020-09-28 16:18  懂事长qingzZ  阅读(337)  评论(0编辑  收藏  举报