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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T00:41:44+00:00 2026-06-17T00:41:44+00:00

In my xcode app, I previously had things set up like this: main display

  • 0

In my xcode app, I previously had things set up like this:

main display -> table of episodes view -> episode detail view

When the user selected an episode in the UITableView, the detail view was loaded. The detail view then gave some new functions, such as downloading the corresponding file. This download was handled through a helper class I made and initiated when the user hit a button on the detail view.That all worked fine.

But because there really wasn’t too much new information in the detail view, I started trying to bring it all into the cell on the table view. Now when a user clicks a cell, the cell height expands and displays the extra information.

So my question is this. How do I handle the methods I used to call from the detail view, like to download the file?

For example, the function I was using to download the associated file:

- (IBAction)downloadTheFile:(id)sender {
    self.downloadProgress.hidden = false;
    self.downloadButton.hidden=true;

    [self.myEpisodeDownloader getFileFromURL:[self.currentEpisode epFileURL] withIndicator:[self downloadProgress]];

}

When I try to bring that over into the new method, I get confused about what to pass to it and how it accesses different things. Basically, in losing the “detail view” I have lost a container for everything. You can see in my function I use “self” to get and modify different things. Now instead of a container I have instances of cellForRowAtIndexPath trying to do things.

I started down the path of passing everything to the download function, but it started to smell wrong. Should I try delegates? An intermediary class? Give up and go back to the old way?

  • 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-17T00:41:45+00:00Added an answer on June 17, 2026 at 12:41 am

    Your Cell becomes the new container, you can probably move a lot of the code you had in your detailview straight into a subclass of UITableViewCell. If you have not subclassed UITableViewCell for your cell you will probably need to, while you can accomplish everything from the outside, things will be a lot better separated and clearer if you accomplish them in a subclass.

    In that subclass you should be able to pretty much do that same things that you did in your tableview, you probably eventually will want to prevent the user for just tapping a large number of cell to set off the downloads or queue them, but that is something you should be able to ingore in the first step.

    UITableViewDelegate provides a function tableView:-[did|will]selectRowAtIndexPath: you can use that to find the instance of the cell that has been selected, and trigger the download process for that cell, if necessary. Any view updates you accomplish from the inside you custom cell.

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

Sidebar

Related Questions

This question is in reference to an iPhone app which uses Xcode's Master Detail
I upgraded my Xcode to Version 4.5.1 and suddenly previous app development had 'potentially
I'm developing an iPhone app with latest SDK and XCode 4.2 I'm using this
I can find the tool command in my filesystem under: /Applications/Xcode.app/Contents/Developer/usr/bin/otool If I specify
I've an app using low level CoreAudio C functions, usually located under /Volumes/Xcode/Xcode.app/Contents/Developer/Extras/CoreAudio/PublicUtility/. Just
Ld build/Development/Decompress normal i386 cd /Users/icthealth/Desktop/dcmtk/osirix/osirix setenv MACOSX_DEPLOYMENT_TARGET 10.7 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk
I'm currently creating an iPhone app (Xcode 4.3.1, IOS 5) that could use Bluetooth
I am creating an iPad app using XCode 4 and Storyboards. I have a
I'm creating an iphone app using xcode 4.2, and trying to use the AVFoundation
I am working on an IPad app in xcode. In the IPad simulator, 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.