あなたのFeaturedViewController.mで
- (void)viewDidLoad
{
//create reference of your delegate
YourAppDelegate rootApp = (YourAppDelegate *)[[UIApplication sharedApplication]delegate];
double playlistId = [[[[rootApp playlists] items] objectAtIndex:indexPath.row] playlistId ];
[super viewDidLoad];
}
編集済み
または、FeaturedViewControllerでプロパティを定義し、次のようにこのVCに値を割り当てることができます。
FeaturedViewController nextView = [[FeaturedViewController alloc] initWithNibName:@"FeaturedViewController" bundle:nil];
//below lineset the value of property and you can pass value to nextView
nextView.playlistId = [[playlists.items objectAtIndex:indexPath.row] playlistId]; ;
[self.navigationController pushViewController:nextView animated:YES];
デリゲートの変数にアクセスするためのアイデアが得られることを願っています