UIButtons display differently on UIImageView when created at design time vs. run time

Posted by PRITISH on Stack Overflow See other posts from Stack Overflow or by PRITISH
Published on 2012-04-12T05:38:31Z Indexed on 2012/04/13 5:29 UTC
Read the original article Hit count: 129

Filed under:
|
|
|
|

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

© Stack Overflow or respective owner

Related posts about c#

Related posts about iphone