コード例 #1
0
        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();
        }
コード例 #2
0
        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;
            }
        }
コード例 #3
0
        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;
            }
        }