void StopSharing() { sharing = false; NavigationItem.RightBarButtonItem.Enabled = true; if (progress != null) { progress.StopAnimating(); NavigationItem.TitleView = null; progress = null; } }
void StartSharing() { sharing = true; NavigationItem.RightBarButtonItem.Enabled = false; if (progress == null) { progress = new ProgressLabelSocial(NSBundle.MainBundle.LocalizedString("Sending...", "Sending... status message when sharing")); NavigationItem.TitleView = progress; progress.StartAnimating(); } }