public override void LoadView() { base.LoadView(); over = new LoadingOverlay(View.Bounds, "Searching Results..."); View.Add(over); }
/// <summary> /// Find the first Superview of the specified type (or descendant of) /// </summary> /// <param name="view"> /// A <see cref="UIView"/> /// </param> /// <param name="stopAt"> /// A <see cref="UIView"/> that indicates where to stop looking up the superview hierarchy /// </param> /// <param name="type"> /// A <see cref="Type"/> to look for, this should be a UIView or descendant type /// </param> /// <returns> /// A <see cref="UIView"/> if it is found, otherwise null /// </returns> public static LoadingOverlay AddOverlay(this UIView view, RectangleF frame) { return(overlayView = new LoadingOverlay(frame)); }