Forum Xamarin.Mac


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

View added using AddSubview Not showing in UI (Mac OS Mojave)

We have a NSview in the homePage of our application.Where we add a Nsviewcontroller as subview.The Nsviewcontroller consists of a tableview with delegates. Here the tableview inside the viewcontroller is not displaying in the Nsview of home page.But the tableview row datas are binded succesfully and delagtes are also correctly hitting while using breakpoints.Also While debugging the view is not null.The issue is the User interface is not displaying.

I have created a Nsview programatically and tried to add as subview in homepage and it successfully works.

The functionality is correctly working in the Previous OSX versions. (The issue is only with Mac Os Mojave).

Below is the code :-

if (summaryVC == null) {
summaryVC = new SummaryViewController ();

summaryVC.View.Frame = vwMain.Bounds;

vwMain.AddSubview (summaryVC.View);
CommonClass.SummaryController = summaryVC;

SummaryViewController - Contains tableview and delegates. vwMain:- Nsview in the homepage. The issue is in the Mac Os application Developed by Xamarin.Mac

Please any one help me to solve the issue


Sign In or Register to comment.