I have a UIScrollView as a child to a ViewController.view and for some reason the coordinates system within the UISCrollView seem to be inversed? Is there a reason for this?
When I add UILabels or UIImages to the UISCrollView it seems to add in the inverse.
A statement like this
tempLabel = [[UILabel alloc] initWithFrame:
CGRectMake(tempImage.frame.origin.x,
tempImage.frame.origin.y + tempImage.frame.size.height * 1.5,
80,
25)];
Add the label to the top left of the image rather than below to the middle. What could be causing the coordinates to be flipped?
Check the “Origin” attribute in the interface builder, make sure it’s in the upper left as you expect:
