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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:21:02+00:00 2026-05-28T13:21:02+00:00

In an attempt to figure out how to integrate code from one program into

  • 0

In an attempt to figure out how to integrate code from one program into another I have dumped 3 classes into an empty open GLES game project. The classes are ContentController, PhoneContentController and MyViewController from the PageControl apple sample.

I have then taken this initialisation code form the PageControl app delegate file and put it into the game project appDelegate.

 contentController = [[PhoneContentController alloc] init];
 [self.window addSubview:contentController.view];

with the necessary synthesize / protocols / includes and declarations where they are in PageControl.

I get a SIGABRT error on this line in main:

return UIApplicationMain(argc, argv, nil, NSStringFromClass([IntegrationTestAppDelegate class]));

I added a general breakpoint and it points to this line in MyViewController.m

newsItem = [[UITextView alloc] initWithFrame:self.view.frame];

I’m guessing this has something to do with self.view.frame ….? maybe? So, is there some hierarchy type issue at work here?

EDIT – on further inspection it does seem to have something to do with views… although I don’t quite know what. Could this have something to do with a foreign nib file?

EDIT – more detail: the newsItem is called from init of myViewController which is called from a method within phone content controller, which in turn is called with the following line in appdelegate:

contentController = [[PhoneContentController alloc] init];
  • 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-28T13:21:03+00:00Added an answer on May 28, 2026 at 1:21 pm

    At what point is:

    newsItem = [[UITextView alloc] initWithFrame:self.view.frame];
    

    being run? In particular, is it after nib loading is complete? If not, and self.view was set in Interface Builder, then self.view is going be nil, and self.view.frame is going to be garbage. (-initWithFrame: expects a CGRect struct, so in this case a nil pointer is wholly unacceptable, unlike in methods that expect Objective-C objects.)

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

Sidebar

Related Questions

In am attempt to figure out if malloc() in my cross-compiled mingw32 program is
I can't figure out how to get the following routes. Here's an extract from
I have been trying to figure out why i cant get even the most
I've encountered one issue I can't seem to figure out. I would like to
I've looked all around, and can't quite figure this one out, and my multitude
im trying to figure out how i can do this. i have a list
Theres something here I can't quite figure out. When I attempt to query an
Hi just trying to figure out how to load two different custom uitableviewcells into
I have been beating my head against the wall in an attempt to figure
I'm trying to figure out how I can have a javascript function privately track

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.