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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:56:14+00:00 2026-05-26T14:56:14+00:00

I created two ViewControllers (Xcode 4 => Storyboard). After that I created two UIViewSubclasses,

  • 0

I created two ViewControllers (Xcode 4 => Storyboard). After that I created two UIViewSubclasses, called PlayOutControlViewController.h and TVOutViewController.h.

I want to display a video on an external Display, so I tried the following:

(MediaPlayer.framework added, Changed the class of my UIViewSubclasses to PlayOut… and TVOut… – Controller.h)

PlayoutViewController.m

[TVOutViewController.view addSubview: MediaPlayer.view];
//Got Error: Property view not found on object of type TVOutViewController

[TVOutViewController addSubview: MediaPlayer.view]; //Got an Error
//Got Error: No known class method for selector addSubview

Sorry, I know what the Errors mean, but not how to fix them.

Thanks in advance!

P.S. I’m in the PlayoutViewController.m, where:

[self.view addSubview: (anyUIView)];
//works

//and

[PlayoutViewController.view addSubview: (anyUIView)];
//won't work.

… Thank you!

  • 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-26T14:56:15+00:00Added an answer on May 26, 2026 at 2:56 pm

    Thanks so far.

    My TVOutViewController is a subclass of UIViewController, as described here:

    @interface TVOutViewController : UIViewController {    }
    

    I added a UIView to the TVOutViewController in InterfaceBuilder. Do I have to do something else to be able to do like:

    [self.view addSubview: AnyUIView];
    

    Second question:

    If I declare a method in TVOutViewController.m, like:

    +(void)addSubviewMethod:(id)sender { [self.view addSubview: AnyUIView]; }
    

    Why am I not able to call it in the PlayoutControlViewController.m via

    [TVOutViewController addSubviewMethod];
    

    I added

    #import "TVOutViewController.h";
    

    to the PlayOutViewController.m file.

    Thank you all in advance!

    OK SOLVED:

    You were on the right track:

    I forgot to initialize the object. Now it works like a charm!

    TVOutViewController *MoviePlayerView = [[TVOutViewController alloc] init];
    [MoviePlayerView.view addSubview:moviePlayer.view];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created two viewcontrollers and added a button to viewcontroller1, in storyboard. When
I have created two view controllers in XCode along with a UIPickerView, a label,
I created two tables: Publisher PK, PublisherId, int, not null, indentity +1 PublisherName, varchar(50),
I created two files in the App_GlobalResources folder: SiteResources.en-US.resx SiteResources.sp-SP.resx Both contain a value
I created two very simple Heroku apps to test out the service, but it's
I've created two functions to load expanded views of a month in the archive
I've created two classes, with one of them having an implicit cast between them:
I have created two forms in my Windows Application. One Form acts as a
I have created two files: tunables.h #ifndef TUNABLES_H #define TUNABLES_H void tunables_load_conservative(); void tunables_load_aggressive();
I have created two JavaScript files. One file is "validators.js" and the other is

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.