Start a new topic

Is there a blocking function call for looging in a user?

I have a race condition between two views at the moment. I am wondering if there is any way to do a blocking call when I am logging in a user?



No, networking is asynchronous, so the login function requires a callback. However you can add your own blocking by wrapping the login call in a NSOperation or using the appropriate GCD calls. It might be easier to update the app logic to show the appropriate views asynchronously.
Yup thanks for the answer, it just dawned on me shortly after posting this that I could just move the login. So that's what I did. Thanks for the info though, good to know.
Login or Signup to post a comment