Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7493211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T16:49:22+00:00 2026-05-29T16:49:22+00:00

I have a method (myMethod) in a class (myClass) which utilizes the CLLocationManager to

  • 0

I have a method (myMethod) in a class (myClass) which utilizes the CLLocationManager to startMonitoringSignificantLocationChanges(). MyClass is the delegate of the CLLocationManager and I have implemented the didUpdateToLocation() method.

What I want to do is call startMonitoringSignificantLocationChanges() from within myMethod, then once didUpdateToLocation() has been called and completed I want to continue working in myMethod. Is this possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T16:49:25+00:00Added an answer on May 29, 2026 at 4:49 pm

    I won’t say that it’s impossible, but I strongly urge you to embrace the asynchronous nature of how this works, and to find another way to do what you’re trying to do. Like split up myMethod into “before” and “after” parts, and let your delegate trigger the “after”. This is a really common pattern in Cocoa/iOS, and you’ll be happier in the long run not fighting the framework.

    This is especially true if myMethod is something that’s running on the main thread, because blocking that thread while waiting for location updates will lock up your entire UI. Take too long, and the system will kill your app.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a class MyClass with a method: public bool MyMethod(out DateTime? MyDate) {
I have class method: public object MyMethod(object obj) { // I want to add
I have the following code test_A.py which mocks MyClass.mymethod: from unittest import main from
I have a method: myMethod() {} that I want to make accessible to javascript.
I have a custom category (disciplines) in my method plugin which I want to
I have a class with a delegate declaration as follows... Public Class MyClass Public
Suppose I have a class: class MyClass { public int MyMethod(Func<int, int> f) {
I have a generic class, says : MyClass<T> Inside a method of this class,
I have a method that looks similar to the following: public void myMethod(MyClass c)
I have the following code: class MyClass { def myMethod() { variable = I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.