Forum Xamarin.iOS
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Why shows UITextView nothing in TimerConfiguration

I_WeixI_Weix Member ✭✭

Hey Guys,

i have one difficult problem:

In my programm i set a Timer, which should read out all 1.5 seconds the last Error-Code from a List and shows it in a UITextView.
The function to search after the last element of the List works, it is shown via Console.Writeline (Works!!!).

But it won't be displayed in the UITextView... Can you help me whats the Problem?


Code for TimerElapsedEvent:

private void OnTimedEvent(Object source, ElapsedEventArgs e)
{
Console.WriteLine("[Interface]Timer: Error: " + ErrorCodes.GetLastError()); //<--This works and displays the last Error

UITextView1.Text = ErrorCodes.GetLastError(); //<-- This dont work, function returns variable<string>

}

Best Answer

Answers

Sign In or Register to comment.