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 6569135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:35:19+00:00 2026-05-25T14:35:19+00:00

I am using three20 and implement the model like the example of TTRemoteExamples. Now

  • 0

I am using three20 and implement the model like the example of TTRemoteExamples. Now problem is: when I click and open a page, the TTURLRequest sent out, during fetch data from remote, I click to open another page. But the previous network request is still there messed my loaded data. So I want to know the way to cancel previous network request when I switch to another page. Or when I click button to do a new request in the same page.

Thanks~

  • 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-25T14:35:20+00:00Added an answer on May 25, 2026 at 2:35 pm

    To cancel a TTURLRequest, keep a reference to it (typically in an instance variable) then send it a “cancel” message. Like so:

    [self.myRequest cancel];
    

    If you don’t want the delegate to be notified of the request being cancelled, do:

    // I'm assuming self is the delegate here, that may not be true
    [[self.myRequest delegates] removeObject:self];
    [self.myRequest cancel];
    

    You’ll typically also want to do this in your view controller dealloc method. If a request continues after the viewController has been deallocated, it will try to send delegate messages to it, and you’ll get a bad access crash.

    As for the timing of when you cancel it, that’s up to you. If you need it to stop when a user leaves your view controller, then implement UIViewController’s viewWillDisappear: or viewDidDisappear: methods (don’t forget to call super!).

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

Sidebar

Related Questions

I am using the three20 open source project by Joe Hewitt. have the following
Im using TTURLRequest from the cocoa Three20 development library to form a post request.
I'm using the three20 project for my iPhone app. I've narrowed my problem down
I am using the Three20 framework to implement a photo viewer. However, I also
When creating a form using three20 components with the methodology found in this example
I'm using three20 for my dashboard. (ttlauncher) Now when I select a icon to
When I'm using big frameworks like the Three20 Framework, I always have the choice
I am creating a iphone app in which I am using Three20 open source
I'm using a basic Three20 TTTableViewController subclass which employs its own datasource and model.
How do you programmatically show this message using three20's TTTableHeaderDragRefreshView? (Though this example is

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.