简体   繁体   中英

UIDeviceOrientation notification not getting call after calling async method in Xamarin.ios

I am calling async method in ViewDidLoad() method. It will take time so I have added Loading overlay. but whenever I try to rotate my device I am not able to rotate until I get the response from the async method.

Are you awaiting the method? If thats the case then its normal as ViewDidLoad will not finish until the awaited code gets executed.

Dont await the method and it should rotate normally.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM