I\'m having some trouble passing a number as an argument for a method:
- (void)meth2:(int)next_int;
And to call that method I need this:
You can't use next_int as the withObject: because it's not an Object.
next_int
withObject:
Change your call to:
[self performSelectorOnMainThread:@selector(meth2:) withObject:[NSNumber numberWithInt:next_int] waitUntilDone:NO];
EDIT: And change meth2 to expect an NSNumber instead of an int.
meth2
NSNumber
int