Today I want to change a name of a property,so I use refactor->rename to do this.The property is UIButton * favorites
and I changed it to UIButton * collectButton;
.After I finished rename I found some code interesting:
collectButton = [UIButton buttonWithType:UIButtonTypeCustom];
favorites.frame = CGRectMake(165, 10, 145, 35);
favorites.tag = 1;
[btnBgImgView addSubview:collectButton];
I am very confused and I don't know why the Xcode just rename part of the property name I appointed.Is it a bug of Xcode?Have you ever meet this bug?I am afraid that I can't use the rename function anymore.
By the way,my Xcode version is 8.0
在我重命名之前,我的代码中存在一些错误,然后我更正这些错误一切顺利。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.