Dear Cocoaheads,
I am struggling to understand the basics of working with views. I have learned lots from the View Programming Guide, but some ambiguous points remain. Please enlighten me with your wisdom:
1. Point (0,0) is at the top left corner of the screen when the device is help in the normal portrait position. Now, if the device is turned to landscape, where is (0,0)? At the same physical corner, or at the corner that is now top left?
2. There's a little box in the view programming guide that says:
(edit) 3. In the UIView class reference, in regards to UIView's 'alpha' property, it says:
Thank you
I am struggling to understand the basics of working with views. I have learned lots from the View Programming Guide, but some ambiguous points remain. Please enlighten me with your wisdom:
1. Point (0,0) is at the top left corner of the screen when the device is help in the normal portrait position. Now, if the device is turned to landscape, where is (0,0)? At the same physical corner, or at the corner that is now top left?
2. There's a little box in the view programming guide that says:
What does this mean? If I have a view that has a transform applied, how can I have control over its positioning on the screen if not by the use of 'frame'?Important: If a view’s transform property does not contain the identity transform, the frame of that view is undefined and so are the results of its autoresizing behaviors.
(edit) 3. In the UIView class reference, in regards to UIView's 'alpha' property, it says:
I found in practice, that setting alpha to 0 did affect all subviews. The way I could get a transparent view with translucent content was to set the background to [UIColor clearColor]. Was I missing anything about the alpha property, or is this a documentation mistake?The value of this property is a floating-point number in the range 0.0 to 1.0, where 0.0 represents totally transparent and 1.0 represents totally opaque. This value affects only the current view and does not affect any of its embedded subviews.[emphasis added]
Thank you
Last edited: