public void AddDefaultImage(Bio bio) { var frame = new RectangleF(10, 10, DimensionSet.BioImageSquareSize, DimensionSet.BioImageSquareSize); var defaultProfile = new UIImageView(); defaultProfile.Frame = frame; defaultProfile.Image = GetDefaultBioImage(); defaultProfile.BackgroundColor = UIColor.Clear; AddSubview(defaultProfile); }
public BioView(Bio bio, RectangleF frame, bool discloseButton) : base (frame) { _bio = bio; BackgroundColor = UIColor.Clear; AddDefaultImage(_bio); AddLoadingSpinner(); AddOrUpdateBio(_bio); AddSiteUrl(frame); }
public BioView(Bio bio, RectangleF frame, bool discloseButton) : base(frame) { _bio = bio; BackgroundColor = UIColor.Clear; AddDefaultImage(_bio); AddLoadingSpinner(); AddOrUpdateBio(_bio); AddSiteUrl(frame); }
public void AddOrUpdateBio(Bio bio) { var frame = new RectangleF(10, 10, DimensionSet.BioImageSquareSize, DimensionSet.BioImageSquareSize); _profile = _profile ?? new UIImageView(frame); _profile.Image = bio.Image; _profile.BackgroundColor = UIColor.Clear; if (_profile.Superview == null) { AddSubview(_profile); } this.SetNeedsDisplay(); }
public void AddOrUpdateBio(Bio bio) { var frame = new RectangleF(10, 10, DimensionSet.BioImageSquareSize, DimensionSet.BioImageSquareSize); _profile = _profile ?? new UIImageView(frame); _profile.Image = bio.Image; _profile.BackgroundColor = UIColor.Clear; if(_profile.Superview == null) { AddSubview(_profile); } this.SetNeedsDisplay(); }
public BioViewController() : base("Images/backgrounds/wall.jpg", null) { _bio = new Bio(); Root = GetRoot(); }