UIButtons display differently on UIImageView when created at design time vs. run time
- by PRITISH
I have added some UIButton objects into .xib file, and some UIButton objects with the code.
But now I am facing one problem. While Zooming the UIImageView the UIButtons that are added through code are shown on the UIImageView and those that are added with .xib file are below the UIImageView.
Code for UIButtons added with code:
btnBrightness = UIButton.FromType (UIButtonType.RoundedRect);
btnBrightness.Frame = new RectangleF (540, 20, 95, 37);
btnBrightness.SetTitle ("Brightness", UIControlState.Normal);
More details:
monotouch