Skip to content

关于自定义map #13

Description

@LicoC

我日常开发中有个需求就是做懒加载,但是属性的名称通常是不一样的,有没有什么办法能做到支持我在缩写中加入我想要的属性名称,然后能生成懒加载的代码。比如:

  • (UIImageView *)avatar {
    if (!_avatar) {
    _avatar = [[UIImageView alloc] init]
    }
    return _avatar;
    }
    我敲出来iv+avatar 然后自动生成上面这样的代码。
    现在有办法支持在map里面添加这种map的吗?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions