You probably have different classes implementing the method item
but returning a different type of result. If you then try to invoke item
on an id
typed pointer, there's no way to know what the result type is supposed to be.
That's what XCode is lamenting about.
How to solve it depends a lot on what are you really are trying to do. Probably using different names for the methods is the best solution.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…