When I tried to add private in front of a function, the xcode complains that "attribute private can only be used in a non local scope". I thought "private" is suppose to be used for things that you want to keep local right?
Could someone tell me how to get ride of the error message? I still want to keep the function private.
I made it here from searching for this error attribute private can only be used in a non local scope
. In my case it was caused by a missing closing bracket at the end of a switch statement. Hope this helps someone.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With