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

  • Home
  • SEARCH
  • 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 8239253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T20:04:59+00:00 2026-06-07T20:04:59+00:00

[[RKObjectManager sharedManager] loadObjectsAtResourcePath:@app/site_pattern usingBlock:^(RKObjectLoader* loader) { [loader setObjectMapping:clientMappring]; loader.delegate = self; shopLoader = loader;

  • 0
[[RKObjectManager sharedManager] loadObjectsAtResourcePath:@"app/site_pattern" usingBlock:^(RKObjectLoader* loader) {
    [loader setObjectMapping:clientMappring];
    loader.delegate = self;
    shopLoader = loader;
}];

Above, I use the block function to load some data in my app, but when I pop this viewcontroller, I don’t know when and how to cancel this request .

Any idea?

- (void)showSelectShop
{

    SelectShopViewController * selectShopViewController = [[SelectShopViewController alloc] initWithNibName:@"SelectShopViewController" bundle:nil];
    [self.navigationController pushViewController:selectShopViewController animated:YES];
}

More:

I try to cancel it in the viewDidUnload

- (void)viewDidUnload
{
    [super viewDidUnload];
    [shopLoader cancel];
}

But it didn’t work. I still getting error.

  • 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-06-07T20:05:01+00:00Added an answer on June 7, 2026 at 8:05 pm

    I solved this by adding

    - (void)viewWillDisappear:(BOOL)animated
    {
        [shopLoader cancel];
        shopLoader.delegate = nil;
        shopLoader = nil;
    }
    

    I still want to know if I don’t want to cancel this request in viewWillDisappear, which function do those lines should be written in?

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

Sidebar

Related Questions

The errorMapping is defined as: [[[[RKObjectManager sharedManager] mappingProvider] errorMapping] setRootKeyPath:@error]; It works well with
I create a managed object save the context and post like so: [[RKObjectManager sharedManager]
I'm having trouble with my iOS/Restkit app. It used to work fine but now
After making the rest call through RKObjectManager,it is not loading the objects when i
I have a method like this. - (void)loadData { RKObjectManager* manager = [RKObjectManager objectManagerWithBaseURL:@http://localhost:8080/activiti-rest/service];
Hi stackoverflow community, i'm using RKObjectManager to make iOS RESTful requests to map responses
Possible Duplicate: delegate not being called I declared a delegate in my appdelegate class,
I have a small app using RestKit with a Sinatra-backed server. When I post
I am trying to create a singleton User class in my app, here's the
I have a RestKit-based app with one mapped class. Everything seems to work fine.

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.