开发者

XCode - nested functions are disabled !

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜