public override void ViewWillAppear(bool animated) { nfloat tableHeight = 0f; int numRows = (int)ConversationConsentTableView.NumberOfRowsInSection(0); for (int i = 0; i < numRows; i++) { tableHeight += 1.2f * ConversationConsentTableView.RectForRowAtIndexPath(NSIndexPath.FromItemSection(i, 0)).Height; } tableViewHeight.Constant = tableHeight; ConversationConsentTableView.UpdateConstraints(); ConversationConsentTableView.LayoutIfNeeded(); }
void ReleaseDesignerOutlets() { if (ConversationConsentContent != null) { ConversationConsentContent.Dispose(); ConversationConsentContent = null; } if (ConversationConsentSubmit != null) { ConversationConsentSubmit.Dispose(); ConversationConsentSubmit = null; } if (ConversationConsentTableView != null) { ConversationConsentTableView.Dispose(); ConversationConsentTableView = null; } if (ConversationConsentTitle != null) { ConversationConsentTitle.Dispose(); ConversationConsentTitle = null; } if (ConversationDecisionDes != null) { ConversationDecisionDes.Dispose(); ConversationDecisionDes = null; } if (ConversationDecisionTitle != null) { ConversationDecisionTitle.Dispose(); ConversationDecisionTitle = null; } }
void ReleaseDesignerOutlets() { if (ChooseLanguageTitle != null) { ChooseLanguageTitle.Dispose(); ChooseLanguageTitle = null; } if (ConversationConsentSubmit != null) { ConversationConsentSubmit.Dispose(); ConversationConsentSubmit = null; } if (ConversationConsentTableView != null) { ConversationConsentTableView.Dispose(); ConversationConsentTableView = null; } if (ConversationDecisionDes != null) { ConversationDecisionDes.Dispose(); ConversationDecisionDes = null; } if (LanguagePicker != null) { LanguagePicker.Dispose(); LanguagePicker = null; } if (tableViewHeight != null) { tableViewHeight.Dispose(); tableViewHeight = null; } }