I moved some code into a new subclass of UIViewController, which is a parent of the class in which the code already resided. I did that because I want to reuse some code from the latter class.
Every block of code I've been able to test works except this one:
I don't believe the problem has anything to do with the fact that all my labels are subclasses of the UILabel class, because the same outlet collection is referenced in a piece of code that works.
Every block of code I've been able to test works except this one:
Code:
- (void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
CGPoint touchLocation = [[[touches allObjects] objectAtIndex:0] locationInView:self.view];
for (UILabelSubclass *label in draggableLabels) // This line is where my issue lies.
{
...
}
}
I don't believe the problem has anything to do with the fact that all my labels are subclasses of the UILabel class, because the same outlet collection is referenced in a piece of code that works.