I'm using a selector to change a View item's visibility
[target performSelector:@selector(setVisible:) withObject:[NSNumber numberWithBool:YES] afterDelay:delay];
and my function in the view is:
- (void)setVisible:(BOOL)isVisible_
{
if (isVisible_)
{
...
}
else
{
...
}
}
And this code works different for iPhone and iPad. In iPhone isVisible_ is always NO. in iPad it works correct. When I changed my function to get an id instead of BOOL, and then cast it to BOOL myself, it worked correctly on both devices. But what is the reason for this behaviour?