Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于自定义map #13

Open
LicoC opened this issue Jun 10, 2017 · 0 comments
Open

关于自定义map #13

LicoC opened this issue Jun 10, 2017 · 0 comments

Comments

@LicoC
Copy link

LicoC commented Jun 10, 2017

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

  • (UIImageView *)avatar {
    if (!_avatar) {
    _avatar = [[UIImageView alloc] init]
    }
    return _avatar;
    }
    我敲出来iv+avatar 然后自动生成上面这样的代码。
    现在有办法支持在map里面添加这种map的吗?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant