- 博客(1)
- 收藏
- 关注
原创 Local declaration of 'XYZ' hides instance variable
今天调试程序,出现以下错误,经过查询是重名了。 Local declaration of 'XXX' hides instance variable 遇到这种原因,是因为本地变量跟函数参数变量同名。修改重复的变量名就会解决问题。
2016-02-26 11:47:50 226
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
今天调试程序,出现以下错误,经过查询是重名了。 Local declaration of 'XXX' hides instance variable 遇到这种原因,是因为本地变量跟函数参数变量同名。修改重复的变量名就会解决问题。
2016-02-26 11:47:50 226
TA创建的收藏夹 TA关注的收藏夹
TA关注的人