I write a code and getting problem with this code:
// for assigning code to item
myFrame.origin.y -= [item respondsToSelector:@selector(myHeight)] ? [item myHeight] : [self defaultMyHeight];
Here is the problem:
The compiler is assuming that the return type is id. So, I thought that by using type cast I would fix this:
but it’s not working.
So, I’m not understanding that what amoing wrong.oing wrong. I doing wrong.