开发者

XCode - nested functions are disabled !

开发者 https://www.devze.com 2023-01-19 13:00 出处:网络
I used to be able to do forEach loops in XCode, but after installing sdk 4 i get errors error: nested functions are disabled, use -fnest开发者_StackOverflowed-functions to re-enable

I used to be able to do forEach loops in XCode, but after installing sdk 4 i get errors

error: nested functions are disabled, use -fnest开发者_StackOverflowed-functions to re-enable

How can i enable nested functions It says "use -fnested-", but use is where? how?

for (MyObject *obj : array)
{

}


I think you mean:

for (MyObject * obj in array) { ... }

(Note that you use in and not :.

0

精彩评论

暂无评论...
验证码 换一张
取 消