Description
The problem is that the compiler sees more than one method with a name tagin the current translation unit, and these declarations have different types of returned data. Most likely there will be -[UIView tag]one that returns NSInteger. But he also saw another ad tag, perhaps:
@interface MONDate
- (NSString *)tag;
@end
then the compiler sees ambiguity - is that sendera UIView? or is it MONDate?
The compiler warns you that it must guess what the type is sender. It really requires undefined behavior.
Resolution
, :
- (IBAction)shareThisActionSheet:(id)sender
{
UIView * senderView = sender;
int row = [senderView tag];
...
else, - isKindOfClass:, , . , .