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
Post a Comment