c# - Xamarin Forms on iOS, while debugging elements turns to null -
i have xamarin forms app, works fine, on click events doesn't work, tried debug , noticed gui objects turned null, don't know why, tried compare null , re-initialize then, if-statement ignored mono! heck?
here class: http://pastebin.com/jdufj9sb
activityindicator turn null don't know when, when check on 224 line, , debugger shows null, if-statement doesn't run properly
you're using async method views initialization:
private async task load(profile profile)
there're places call function (eg. line 70):
- without await (so fire , forget)
- without using device.begininvokeonmainthread. remember: all operations on ui must done ui thread.
Comments
Post a Comment