Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Aug 28, 2013, 01:09 PM   #1
DavidBlack
macrumors 6502
 
Join Date: Jan 2013
Location: Somewhere In Apple's HQ ;)
Table View Question.

Hi, I have a app going to making it's a tutor app with videos. When the user selects a table cell I want to load a movie, can anyone point me in the right direction?
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2013-08-28 at 2.06.53 PM.png
Views:	39
Size:	549.0 KB
ID:	430384  
__________________
21.5"iMac late 2012, 2.7 GHz, 8 GB RAM, 1TB HD; 11.6" Macbook Air Mid 2011, 1.6 GHz, 2 GB RAM; iPhone 5 White 32GB; iPod Touch 5th gen, White, 32GB
DavidBlack is offline   0 Reply With Quote
Old Aug 28, 2013, 01:52 PM   #2
robvas
macrumors 68000
 
Join Date: Mar 2009
Location: USA
Quote:
Originally Posted by DavidBlack View Post
Hi, I have a app going to making it's a tutor app with videos. When the user selects a table cell I want to load a movie, can anyone point me in the right direction?
What have you tried so far?
robvas is offline   0 Reply With Quote
Old Aug 29, 2013, 09:12 AM   #3
DavidBlack
Thread Starter
macrumors 6502
 
Join Date: Jan 2013
Location: Somewhere In Apple's HQ ;)
Quote:
Originally Posted by robvas View Post
What have you tried so far?
I haven't tried anything as yet.
__________________
21.5"iMac late 2012, 2.7 GHz, 8 GB RAM, 1TB HD; 11.6" Macbook Air Mid 2011, 1.6 GHz, 2 GB RAM; iPhone 5 White 32GB; iPod Touch 5th gen, White, 32GB
DavidBlack is offline   0 Reply With Quote
Old Aug 29, 2013, 09:15 AM   #4
pmau
macrumors 6502a
 
Join Date: Nov 2010
Quote:
Originally Posted by DavidBlack View Post
I haven't tried anything as yet.
Sorry, that made me laugh. You are outlining a complex idea, asking about TableViews and then you say you have not tried anything ???

Wow ...
pmau is offline   0 Reply With Quote
Old Aug 29, 2013, 09:26 AM   #5
DavidBlack
Thread Starter
macrumors 6502
 
Join Date: Jan 2013
Location: Somewhere In Apple's HQ ;)
Quote:
Originally Posted by pmau View Post
Sorry, that made me laugh. You are outlining a complex idea, asking about TableViews and then you say you have not tried anything ???

Wow ...
I know it sounds funny... but I am asking for someone to point me in the right direction.
__________________
21.5"iMac late 2012, 2.7 GHz, 8 GB RAM, 1TB HD; 11.6" Macbook Air Mid 2011, 1.6 GHz, 2 GB RAM; iPhone 5 White 32GB; iPod Touch 5th gen, White, 32GB
DavidBlack is offline   0 Reply With Quote
Old Aug 29, 2013, 09:33 AM   #6
pmau
macrumors 6502a
 
Join Date: Nov 2010
You open Xcode, create a new project.
You open the main XIB/Storyboard
You drag a SpliView in the Window
You drag a TableView to the left side od the SplitView.
You drag a Custom View Class to the right.
You connect all outlets to you controller and datasource and so on.

I would never design it that way, but if you need a rapid prototype, this ia basically what you do.

Then you implement your datasource and TableView delegate.
Everytime you select a an item on the left, you insert a Movie View as a subview on the right, removing one that's already there.

What's your actual question?
pmau is offline   0 Reply With Quote
Old Aug 29, 2013, 03:28 PM   #7
DavidBlack
Thread Starter
macrumors 6502
 
Join Date: Jan 2013
Location: Somewhere In Apple's HQ ;)
Quote:
Originally Posted by pmau View Post
You open Xcode, create a new project.
You open the main XIB/Storyboard
You drag a SpliView in the Window
You drag a TableView to the left side od the SplitView.
You drag a Custom View Class to the right.
You connect all outlets to you controller and datasource and so on.

I would never design it that way, but if you need a rapid prototype, this ia basically what you do.

Then you implement your datasource and TableView delegate.
Everytime you select a an item on the left, you insert a Movie View as a subview on the right, removing one that's already there.

What's your actual question?
Thanks for your help but I did the steps you stated above already for a prototype but mine I did not use a SplitView.
__________________
21.5"iMac late 2012, 2.7 GHz, 8 GB RAM, 1TB HD; 11.6" Macbook Air Mid 2011, 1.6 GHz, 2 GB RAM; iPhone 5 White 32GB; iPod Touch 5th gen, White, 32GB
DavidBlack is offline   0 Reply With Quote
Old Aug 29, 2013, 10:50 PM   #8
Sonnestah
Banned
 
Join Date: Mar 2013
Quote:
Originally Posted by DavidBlack View Post
Thanks for your help but I did the steps you stated above already for a prototype but mine I did not use a SplitView.
You asked for someone to help by pointing you to the right direction, he gives you the right direction and then you reply with "I did not use splitview"?

I don't get it.
Sonnestah is offline   0 Reply With Quote
Old Aug 30, 2013, 12:43 AM   #9
multinode
macrumors regular
 
Join Date: Feb 2011
Quote:
Originally Posted by Sonnestah View Post
You asked for someone to help by pointing you to the right direction, he gives you the right direction and then you reply with "I did not use splitview"?

I don't get it.
Why the confusion/putdown? He tried something, but he's looking for another way from us AND maybe he doesn't know how to insert a movieview.

Be cool man.
__________________
PLEASE DON'T SUPPORT ANTI AMERICA WIKILEAKS ... CUTE BUT DESTRUCTIVE
multinode is offline   0 Reply With Quote
Old Aug 30, 2013, 12:51 AM   #10
Sonnestah
Banned
 
Join Date: Mar 2013
Quote:
Originally Posted by multinode View Post
Why the confusion/putdown? He tried something, but he's looking for another way from us AND maybe he doesn't know how to insert a movieview.

Be cool man.
Confused because he said he followed the steps provided BUT did not use a splitview. That means he actually did not follow it as 3rd step asks him to use one.

Thats what I dont get
Sonnestah is offline   0 Reply With Quote
Old Aug 30, 2013, 01:06 AM   #11
multinode
macrumors regular
 
Join Date: Feb 2011
Let's just be helpful

Quote:
Originally Posted by Sonnestah View Post
Confused because he said he followed the steps provided BUT did not use a splitview. That means he actually did not follow it as 3rd step asks him to use one.

Thats what I dont get
I read his comments as that he had already done some preliminary coding on his own without the split view. Note the key word "ALREADY" in his response.

Nevermind ... I don't want us to belabor the point. I'm just opting for tolerance ... all of us at times ask what may seem to be stupid questions.
__________________
PLEASE DON'T SUPPORT ANTI AMERICA WIKILEAKS ... CUTE BUT DESTRUCTIVE
multinode is offline   0 Reply With Quote
Old Oct 6, 2013, 05:42 AM   #12
DavidBlack
Thread Starter
macrumors 6502
 
Join Date: Jan 2013
Location: Somewhere In Apple's HQ ;)
This is an example of what I will like.
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2013-10-06 at 6.40.59 AM.png
Views:	14
Size:	458.0 KB
ID:	438805  
__________________
21.5"iMac late 2012, 2.7 GHz, 8 GB RAM, 1TB HD; 11.6" Macbook Air Mid 2011, 1.6 GHz, 2 GB RAM; iPhone 5 White 32GB; iPod Touch 5th gen, White, 32GB
DavidBlack is offline   0 Reply With Quote
Old Oct 6, 2013, 10:10 AM   #13
Blakeasd
macrumors 6502a
 
Join Date: Dec 2009
Quote:
Originally Posted by DavidBlack View Post
This is an example of what I will like.
I think I understand your problem.

To get whatever row is selected you can do this:

Code:
id selectedItem = [yourTableView itemAtRow:[yourTableView selectedRow]];
With the data that is returned you could use a switch or if-else statement (really anything of deciding nature) to determine what video to play depending on what is selected.

The videos can be played via a QTMovieView, which you can read more about here.

Just place a QTMovieView next to your table view -- and voila -- switch the videos out as needed.
Hopefully this can help you out!
Blakeasd is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Table View to Detail View hammy35 iPhone/iPad Programming 3 Apr 16, 2014 01:33 AM
View-based table view losing selection highlight Starfox Mac Programming 1 Nov 28, 2012 01:02 AM
Find location of table view cell that calls view controller moonman239 iPhone/iPad Programming 3 Nov 24, 2012 05:31 PM
View based table view layout woes Starfox Mac Programming 0 Nov 8, 2012 10:50 PM
Pushing to a Detail View from a Table View Cell using Xcode Storyboard xcodeApp10 iPhone/iPad Programming 2 Sep 17, 2012 03:45 PM

Forum Jump

All times are GMT -5. The time now is 05:15 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC