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?
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 ...
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.
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.
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
This is an example of what I will like.
id selectedItem = [yourTableView itemAtRow:[yourTableView selectedRow]];