c# - Xamarin iOS - Simulator View is not refreshing -


i have simple piece of code built in xamarin ios in viewcontroller :

    void logmessage (string message)     {         logtext.text += string.format("\n{0}", message));     } 

where logtext is:

    [outlet]     [generatedcode ("ios designer", "1.0")]     uilabel logtext { get; set; } 

the code being called, text property of logtext being updated properly, in ios simulator see no change @ all. tried replacing uilabel uitextview nothing changes.

if trying update ui background thread, not work. force update on ui thread, try this

invokeonmainthread (delegate {       logtext.text += string.format("\n{0}", message)); }); 

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

xcode - Swift Playground - Files are not readable -

jboss7.x - JBoss AS 7.3 vs 7.4 and differences -