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

The Archive Base Latest Questions

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

I have been trying to do this for a long time now. so here

  • 0

I have been trying to do this for a long time now. so here is what I am doing

firstviewcontroller
.h

iPhoneStreamingPlayerViewcontroller *viewController; 
@property(nonatomic,retain)iPhoneStreamingPlayerViewController *viewController;

.m
in didselectrowatindexpath

    BooksNavController *bks  = [[BooksNavController alloc]init];


    bookDetailViewController.title = [NSString stringWithFormat:@"%@",[booksArray objectAtIndex:rowSelected]];  
    NSString *ti = [NSString stringWithFormat:@"%@",[booksArray objectAtIndex:rowSelected]];

    [bookDetailViewController title3:ti];

    Music_appAppDelegate *delegate = [[UIApplication sharedApplication]delegate];
    [delegate.booksNavController pushViewController:bookDetailViewController animated:YES];

    [bks nowPlayingView:bookDetailViewController];
    NSString *check = [NSString stringWithFormat:@"%@",[urlArray objectAtIndex:rowSelected]];
    [bookDetailViewController check:check];
    [bks release];

now in secondviewcontroller

in didselectrowatindexpath (is a tableview again)

 if (self.bookDetailViewController == nil)
{
    iPhoneStreamingPlayerViewController *aBookDetail = [[iPhoneStreamingPlayerViewController alloc] initWithNibName:@"iPhoneStreamingPlayerView" bundle:nil];
self.bookDetailViewController = aBookDetail;
    [aBookDetail release];
}

BooksNavController *bks  = [[BooksNavController alloc]init];


bookDetailViewController.title = [NSString stringWithFormat:@"%@",[booksArray objectAtIndex:rowSelected]];  
NSString *ti = [NSString stringWithFormat:@"%@",[booksArray objectAtIndex:rowSelected]];


[bookDetailViewController title3:ti];

Music_appAppDelegate *delegate = [[UIApplication sharedApplication]delegate];
[delegate.booksNavController pushViewController:bookDetailViewController animated:YES];

[bks nowPlayingView:bookDetailViewController];
NSString *check = [NSString stringWithFormat:@"%@",[urlArray objectAtIndex:rowSelected]];
[bookDetailViewController check:check]; 
[bks release];

PlaylistTableViewController *playlistTableViewController = [[PlaylistTableViewController alloc]init];
[playlistTableViewController checkView:2];

playlistTableViewController.bookDetailViewController1 = bookDetailViewController;
[playlistTableViewController release];

This isn’t working though the view is being set to nil for some reason I don’t know why (I have made a property for the view too).

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

    you can do like below:

    Below is an idea for how to achieve you condition.

    Suppose, you have 2 view controller.

    FirstViewController

    SecondViewController

    Now,
    Create one variable in SecondViewController.h file
    id parent;

    And create one method:

    -(void)setParent:(id)pParent;

    in SecondViewController.m file

    implement method like below

    -(void)setParent:(id)pParent{
        parent=pParent
    }
    

    Now, you have one object of SecondViewController in FirstViewController.

    Suppose it’s name is objSecondViewController.

    After pushing to the secondViewController call “setParent” method.

    Like
    [objSecondViewController setParent:self];

    That’s it.
    Now, if you want to call any method of FirstViewController,

    then you can do it using “parent” object.

    One thing,
    import “FirstViewController.h” in you “SecondViewController.m” file.

    Hope you got the point and it will be helpful to you.

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

Sidebar

Related Questions

I have been trying to work with NIO SocketChannels for some time now, and
Coming from web development I have been trying to get familiar with compiled programming,
I have implemented a version of Rush Hour (the puzzle board game) in Python
I am writing this to get a more realistic view of what I should
Possible Duplicate: Simulating a BlueScreen Hello SO, I'm trying to induce a BSOD somehow
So new to objective-c and iphone/ipad development. Trying to get my feet wet with
I've heard questions about bypassing this security feature of Windows 7 before, but I
I am developing a parser application to build a call tree from DDL files
What's the best way to get around the shortcoming of generic type inferencing of
How can I start a thread which will run in the background but the

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.