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

  • Home
  • SEARCH
  • 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 8227863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:16:24+00:00 2026-06-07T16:16:24+00:00

I am using this famous airplay demo app: https://github.com/quellish/AirplayDemo/ and trying to figure out

  • 0

I am using this famous airplay demo app: https://github.com/quellish/AirplayDemo/

and trying to figure out how to control the secondary screen from the primary. say for simplicity, having a button on screen 1 that if tapped on, will show something on screen 2 (Apple TV).

Any idea how to do that or how to use this demo app to support such a functionality?

thanks guys.

  • 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-06-07T16:16:26+00:00Added an answer on June 7, 2026 at 4:16 pm

    You can do this two different ways, you can try doing this by creating a delegate interface.
    Try out this tutorial which explains you exactly how to create/use a delegate.

    See: http://www.ios-developer.net/iphone-ipad-programmer/development/delegates/how-to-create-a-delegate

    Or you can create a singleton of your class where you load your view controller.
    So you can call this singleton and call your functions of the other view controller.

    For singleton see: http://getsetgames.com/2009/08/30/the-objective-c-singleton/

    I simply load my view controller in my AppDelegate and then when I push a button I call the UIApplication sharedInstance of my app. See the code below for a counter:

    - (IBAction)raiseNumber:(id)sender {
    int number = [[AppDelegate sharedInstance] getNumber];
    number++;
    
    [[AppDelegate sharedInstance] setNumber:number];
    
    //Set to label on the remote view
    [[AppDelegate sharedInstance].remoteViewController setNumber:number];
    }
    

    I hope this is very helpful, if there you have any questions let me know :-).

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

Sidebar

Related Questions

Using this page, http://developer.android.com/sdk/compatibility-library.html , I have installed the Android Support Package, added a
Using this tutorial: http://www.c-sharpcorner.com/uploadfile/UrmimalaPal/creating-a-windows-phone-7-application-consuming-data-using-a-wcf-service/ I have created sample/hello world application on the windows phone
Using this answer , I created a sample localized app. My question is, is
I'm using JPA (not JDO) on Google App Engine and this is a typical
I am trying to make a default homepage script using the famous script for
Anybody knows how to execute this using the famous Cakephp ORM-based 'find' query function?
I am trying to do a sample app in python which uses some COM
I'm using this jQuery validation plugin and getting the famous: $(#Form).validate is not a
I'm using a javascript syntax highlighter ( http://alexgorbatchev.com/SyntaxHighlighter/ ). I think this one is
I'm trying to use this GLWidget thing to develop using OpenTK and GTK#, it

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.