UIAlertView starts to show, screen dims, but it doesn't pop up until it's too late!

前端 未结 3 1029
眼角桃花
眼角桃花 2021-01-23 01:19

I have a button which when pressed makes calls that load information from a series of URLs (about 5 seconds loading time). Right before actually making those calls I want to add

3条回答
  •  抹茶落季
    2021-01-23 01:52

    If you have a bunch of operations to perform, in addition to performSelectorInBackground: like cescofry wrote, you can use NSOperation and NSOperationQueue.

提交回复
热议问题