Forum Xamarin Xamarin.iOS

=bug= Xamarin only loading StoryBoard subView elements when being debugged

MwBMwB NLMember ✭✭
edited July 2017 in Xamarin.iOS

I have a UIViewContoller in which I have set certain elements like a UITableView (named: employeesTable) and buttons.

when this view is being called on as followed:

ParticipantsViewController participantsVC = Storyboard.InstantiateViewController("participantsViewController") as ParticipantsViewController;

and I debug as following:

the 'employeetable' is null.

BUT when I debug as below

THEN it does load the required elements, and I can press 'play' and move along with my program.

So ONLY when I watch the certain subViews, I will get results of my subviews. Do I not use this watch: subviews remain null

My ParticipantsViewController.designer:

In short: subviews of certain UIViewController only not null when 'watched' in debugger. IF I do not use this watch, the view remains null

What can I do about this type of bug? I tried putting a delay or setting methods in ViewDidLoad() but no such thing has helped.

I checked all my Resource files for '-' names, but none are present anymore.

Sign In or Register to comment.