IOS警告:Property access result unused - getters should not be used for side effects
不要用.调用,用[]括号调用,警告就没有了。
本文针对iOS开发中出现的警告“Property access result unused, getters should not be used for side effects”,提供了有效的解决方案。建议开发者采用方括号而非点语法来调用属性,以避免该警告的出现。
IOS警告:Property access result unused - getters should not be used for side effects
不要用.调用,用[]括号调用,警告就没有了。
2457
1614
5349
1265
1782

被折叠的 条评论
为什么被折叠?