本文整理汇总了C#中UILabel.Dispose方法的典型用法代码示例。如果您正苦于以下问题:C# UILabel.Dispose方法的具体用法?C# UILabel.Dispose怎么用?C# UILabel.Dispose使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UILabel
的用法示例。
在下文中一共展示了UILabel.Dispose方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Initialize
private void Initialize()
{
Frame = new RectangleF(0, 0, 320, (480) - (54));
Opaque = false;
BackgroundColor = UIColor.Clear;
_mainView = new UIImageView(Frame);
_mainView.Image = UIImage.FromBundle("Images/BarCodeOverlay.png");
Add(_mainView);
_textCue = new UILabel()
{
Frame = new RectangleF(0,102,320,21),
Text = "Adjust barcode according to arrows",
Font = UIFont.SystemFontOfSize(13),
TextAlignment = UITextAlignment.Center,
TextColor = UIColor.White,
Opaque = false,
BackgroundColor = UIColor.FromRGBA(0,0,0,0),
};
_greenBottomArrow = new UIImageView(UIImage.FromBundle("Images/green_down_arrow.png"));
_greenBottomArrow.Frame = new RectangleF(0,129,320,19);
_greenTopArrow = new UIImageView(UIImage.FromBundle("Images/green_up_arrow.png"));
_greenTopArrow.Frame = new RectangleF(0,302,320,19);
_whiteBottomArrow = new UIImageView(UIImage.FromBundle("Images/white_down_arrow.png"));
_whiteBottomArrow.Frame = new RectangleF(0,129,320,19);
_whiteTopArrow = new UIImageView(UIImage.FromBundle("Images/white_up_arrow.png"));
_whiteTopArrow.Frame = new RectangleF(0,302,320,19);
AddSubview(_textCue);
AddSubview(_greenBottomArrow);
AddSubview(_greenTopArrow);
AddSubview(_whiteBottomArrow);
AddSubview(_whiteTopArrow);
_greenBottomArrow.Image.Dispose();
_greenTopArrow.Image.Dispose();
_textCue.Dispose();
_whiteBottomArrow.Image.Dispose();
_whiteTopArrow.Image.Dispose();
_mainView.Image.Dispose();
// initalise flags
_isGreen = false;
SetArrows(false, false);
}