Im trying to pass a selected item from the table view to the detail view in the splitViewController.

The storyboard layout: Storyboard

The splitview layout: Split View

master view .h:

#import "VideoClipData.h"

@protocol VideoDelegate <NSObject>

-(void)didselectVid:(VideoClipData *) vid;


#import <UIKit/UIKit.h>
#import "VideoPlaybackVCIPad.h"

@interface EventVCIPad : UIViewController  <UITableViewDataSource, UITableViewDelegate>


@property (nonatomic, unsafe_unretained) id<VideoDelegate> delegate;

master view .m:

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath

VideoClipData * gameVideos = [gameJsondataEventAry objectAtIndex:indexPath.row];
[self.delegate didselectVid:gameVideos];


detail view .h:

@interface VideoPlaybackVCIPad : UIViewController <UISplitViewControllerDelegate, UIToolbarDelegate, VideoDelegate>

detail view .m

-(void)didselectVid:(VideoClipData *)vid
    Nslog(@"VID: %@ - %@ - %@", vid.evtTitleStr, vid.evtStartStr, vid.evtEndStr);

didselectVid never gets fired. How do I set up the detail view delegate?

Because I cannot set the splitview as a root view.

Related posts

Recent Viewed