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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:40:37+00:00 2026-05-24T06:40:37+00:00

I’m making an app which has a tableview and a DetailViewController. I’m using Apple’s

  • 0

I’m making an app which has a tableview and a DetailViewController. I’m using Apple’s “MultipleDetailViews” code as a launchpad. I want to make this app have around 100 rows in the split view and I want the detail view to change for each row (read 100 views). How can I do this using interface builder but without generating 100 class files and changing names repeatedly?

Currently the only method I have is to create separate view controllers (with class files) manually. This is very agitating, however.

Is there anyway I can use one DetailViewController, add several views to it inside interface builder and push each view when I choose a row in the tableview.

On each view I want to add a background image and three buttons that contain different sounds (every row’s view will have three unique sounds). How can I only create three IBActions and change the sound file path according to what row is selected?

Is there any time-efficient way to do what I am asking?

  • 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-24T06:40:38+00:00Added an answer on May 24, 2026 at 6:40 am

    100 view controllers classes? That’s no good.

    100 instances of a single view controller class? I should hope not.

    Let’s get you the behavior you described with 2, just 2. You have a controller for your table view and a controller for your detail view. That’s it.

    When you select a row in the table view pass that row index to the detail view controller and give the detail view controller a way to load the correct image and sounds based on that row.

    That could be from a naming convention for your image and sound resources (‘background0’, ‘background1’, …) or it could be from some config file which defines the the background image and sounds for each row (a plist containing an array of dictionaries: [{background:”moon.png”, firstSound:”clown.mp3″, secondSound:”moose.mp3″, thirdSound:”water.mp3}, {…}, …]).

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
We're building an app, our first using Rails 3, and we're having to build
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I am using Paperclip to handle profile photo uploads in my app. They upload
I'm making a simple page using Google Maps API 3. My first. One marker
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text

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.