It is possible to execute a method on background in Xcode. The secret of this relies in the way that method is called. This can be implemented using the following line of code.
|
1 |
[self performSelectorInBackground:@selector(myBackgroundMethod:) withObject:@"my string param"]; |
In the above line of code, the method, myBackgroundMethod with one string parameter is executed in background with the string parameter value as @”my string param”.
Incoming search terms:
- xcode background execution
- backgroundexecution xcode iphone



