Programmatic Allocation
pedro380085 opened this issue · comments
Pedro Góes commented
For those of your having problems with wrong-spaced frames, just add the following code to your controller:
_colorPickerView.frame = CGRectMake(0.0f, 0.0f, self.view.frame.size.width, self.view.frame.size.height);
_colorPickerView.colorInfoView.frame = CGRectMake(8.0f, 8.0f, _colorPickerView.colorInfoView.frame.size.width, _colorPickerView.colorInfoView.frame.size.height);
_colorPickerView.colorMapView.frame = CGRectMake(84.0f, 80.0f, self.view.frame.size.width - 84.0f - 8.0f, _colorPickerView.colorMapView.frame.size.height);
_colorPickerView.brightnessSlider.frame = CGRectMake(0.0f, 104.0f, self.view.frame.size.width, self.view.frame.size.height - 104.0f);