Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

moonman239

Cancelled
Original poster
Mar 27, 2009
1,541
32
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:
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.