public override void ViewDidLoad() { base.ViewDidLoad(); PreferredContentSize = new CGSize(PreferredContentSize.Width, 55f); UpdateTitle(); WidgetButton.SetTitle("Tap here to register", UIControlState.Normal); WidgetButton.TouchUpInside += (sender, e) => UIApplication.SharedApplication.OpenUrl(new NSUrl("evolveCountdown://")); }
public override void ViewDidLoad() { base.ViewDidLoad(); PreferredContentSize = new CGSize(PreferredContentSize.Width, 55f); var evolveStartDate = new DateTime(2014, 10, 6); var numDays = (evolveStartDate - DateTime.Now).Days; WidgetTitle.Text = String.Format("{0} days until Evolve", numDays); WidgetButton.SetTitle("Tap here to register", UIControlState.Normal); WidgetButton.TouchUpInside += (sender, e) => UIApplication.SharedApplication.OpenUrl(new NSUrl("evolveCountdown://")); }