Problem in cancel NSURLConnections with navigationcontroller

Discussion in 'iOS Programming' started by sam006, Oct 10, 2010.

  1. sam006 macrumors newbie

    Joined:
    Sep 8, 2010
    #1
    I used a NSURLConnections to download file, and I made a IBAction for cancel the download [connection cancel]; [connection release];
    which is work if used I start the download then cancel it,
    however if I start the download and then use navigationcontroller pushviewcontroller go to another view and the back to the download view, the cancel button will cannot the download


    What should I do to fix this problem , which I can cancel the download even visited another page

    thanks so much
     
  2. Luke Redpath macrumors 6502a

    Joined:
    Nov 9, 2007
    Location:
    Colchester, UK
  3. sam006 thread starter macrumors newbie

    Joined:
    Sep 8, 2010
    #3
    Problem in cancel NSURLConnections with navigationcontroller(with code)

    The zip file have my code and the download status can see in concole

    thanks so much
     

    Attached Files:

Share This Page