我可以使用商品的标签属性来存储特殊的密钥/ID 还是用于其他用途?
预期用途示例:
- (void)awakeFromNib {
[self.popup addItemWithTitle: [NSString stringWithFormat: @"dummy title" ]];
[[self.popup lastItem] setTag: 1658 ];
}
- (IBAction)popupAction: (id)sender {
[self someMethod: [sender selectedItem].tag];
}