Hallo Franz,
probiers mal so:
if ([theLayer isEqual:label.layer]) { NSLog(@"Layer1"); } else if ([theLayer isEqual:label2.layer]) { NSLog(@"layer2"); }
Gruß
IOS-Master