I am slowly building my application up and running.
I use two functions called setCollection
and addToCollection
. These functions are taken NSArray
as input.
I also have a function called add
, in which I use both of these functions. When I try to compile, Xcode shows an error:
'setCollection' uneclared (use in this function first)
I assume this is due to a function called active below. Another suggestion would be that functions should be globalized for use inside my function add
.
Usually I am a php encoder. The way Php handles is the first. Called functions must be in front of functions that use them, because otherwise they simply do not exist. Is there a way to make functions still available at runtime, or do I need to change all the functions so that they work correctly?
source
share