public override void ViewDidLoad() { base.ViewDidLoad (); TableView = new UITableView (this.View.Bounds, UITableViewStyle.Grouped); TableView.AutoresizingMask = UIViewAutoresizing.All; this.View.Add (TableView); BusyView = new BusyView (View.Bounds); this.View.Add (BusyView); }
public override void ViewDidLoad() { base.ViewDidLoad (); Title = "On the Web"; UIWebView view = new UIWebView (this.View.Bounds); view.AutoresizingMask = UIViewAutoresizing.All; view.ScalesPageToFit = true; _busyView = new BusyView (this.View.Bounds); _busyView.Busy = true; this.View.Add (view); this.View.Add (_busyView); view.LoadRequest (new NSUrlRequest (new NSUrl ("http://xamarin.com/evolve"))); view.LoadFinished += delegate { BeginInvokeOnMainThread (delegate { _busyView.Busy = false; }); }; }