I have a UITableView configuration that can start the color picker using the UINavigationController approach:
[self.navigationController pushViewController:colorPickerViewController animated:YES]; [colorPickerViewController release];
The effect of this means that ColourPicker will have a navigation bar at the top (and a back button)
The structure of the ColourPickerViewControll and view of the ColourPickerView is as follows:
- ColourPickerViewController - in it XIB file at the top level view it has: - ColorPickerView : UIView (ie custom UI view) - in it methods it has: - (id)initWithCoder:(NSCoder*)coder { if ((self = [super initWithCoder:coder])) { CGFloat currVertBounds = self.bounds.size.height;
The problem here is that the value of currVertBounds reaches 480, so it does not take into account the navigation bar
QUESTION: How to get the true display height of a ColorPickerView instance?
Is this somehow related to an attempt to get a layout calculated in a custom UIView, and maybe the custom view is not displayed in the general controller / navigation at this stage?
Greg
source share