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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:02:54+00:00 2026-06-02T02:02:54+00:00

I have this scheme: I create a storyboard and subclass the UIViewController to MyViewController

  • 0

I have this scheme:

I create a storyboard and subclass the UIViewController to MyViewController and link it to correct class. Now I can have full access to this controller. But…

I want send a message to this object in application:didFinishLaunchingWithOptions: but I do not see how can I do it. Because I do not create the interface in code, I can’t link it.

How can I do this?

  • 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-02T02:02:55+00:00Added an answer on June 2, 2026 at 2:02 am

    You can get a reference to your UIViewController by using the code below, which assumes it is the only UIViewController. The [[navigationController viewControllers] returns an array of the viewcontrollers, so you could grab the one you want.

    UINavigationController *navigationController = (UINavigationController *)self.window.rootViewController; 
        MyViewController *myViewController = (MyViewController *)[[navigationController viewControllers] objectAtIndex:0]; 
    

    I am curious if you could use the interface builder (Storyboard) and control drag from the view controller to the delegate .h file to create an IBOutlet…I do not have accesss to try that now, but will try when I get home….I could not get the drag method to work…

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

Sidebar

Related Questions

I have URL scheme for my blog like this: http://www.example.com/%YEAR%/%MONTH%/%CATEGORY%/%POST_TITLE%/ Now i want to
I have an orders table with a schema like this. CREATE TABLE orders (
I have a schema that essentially looks like this: CREATE TABLE `data` ( `id`
I'm trying to create a binding to libpython using scheme's FFI. To do this,
I need to create a url scheme like this friend/{userid}/wishlist where friend is the
Exposition: I'm familiar with C/C++/Scheme & OpenGL. I have this client/server program written in
I've been trying to create a layout like this: Now I'm not asking for
I can't understand general scheme using certificates. For example: I have account on the
How can one accomplish class-based default value in following scheme? I mean, I would
I am trying to create a link that can be sent via email which

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.