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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T00:30:53+00:00 2026-05-12T00:30:53+00:00

I have a XIB file with a UITextView, which I’m associating with a UITextView*

  • 0

I have a XIB file with a UITextView, which I’m associating with a UITextView* outlet in my controller:

@interface MyController : UIViewController <UITextViewDelegate> {
    IBOutlet UITextView *textView;
}

@property (nonatomic, retain)  IBOutlet UITextView *textView;

I’ve aded the prototype in desperation, I’ve not implemented any of the methods of the delegate.

My view is loaded from a tab bar defined in my main XIB file. When I tap on the relevant tab bar button, an exception is thrown immediately (before any controller methods are called). The top of the call stack looks like this (from the debugger):

#0  0x93829bc6 in -[NSException raise]
#1  0x9157f8f8 in _NSSetUsingKeyValueSetter
#2  0x9157f35e in -[NSObject(NSKeyValueCoding) setValue:forKey:]
#3  0x91603f81 in -[NSObject(NSKeyValueCoding) setValue:forKeyPath:]
#4  0x30c1fadb in -[UIRuntimeOutletConnection connect]
#5  0x9381ebe5 in -[NSArray makeObjectsPerformSelector:]
#6  0x30c1e629 in -[UINib instantiateWithOptions:owner:loadingResourcesFromBundle:]
#7  0x30c2068c in -[NSBundle(NSBundleAdditions) loadNibNamed:owner:options:]
#8  0x30ac6f26 in -[UIViewController _loadViewFromNibNamed:bundle:]

It appears that there’s some problem setting the text view outlet. I’m sure it’s related to the UITextView because if I comment out the text view related code and remove the text view from the XIB, the view loads fine. There’s no error message available on the console.

Are there any special considerations with UITextView elements when created in IB? I’ve got it connected to the IBOutlet in my code and the delegate is set to the ‘Files Owner’ (I’ve also tried it without a delegate).

  • 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-12T00:30:53+00:00Added an answer on May 12, 2026 at 12:30 am

    In your tab view, did you set the owning class to MyController for the tab where you’ve set your XIB? If you don’t do this, you’ll get this kind of selector setup error. Pulled my hair out a bit over this one.

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

Sidebar

Related Questions

I have this in my .h controller @interface helloViewController : UIViewController { IBOutlet UIlabel
I have basic *.xib file, which have NSView. How can I use another nib
I have a View Controller inside my MainWindow.xib file that loads the nib Cover
I have 3 file: MyViewController.h MyViewController.m MyViewController.xib MyViewController.xib have some view which i removed?
I have a navigation controller app. I created a RootViewController class with Xib file.
I have a .xib file containing a UIView and 2 UILabel subviews linked to
If I have something like a UILabel linked to a xib file, do I
i have this MainViewController, which is a controller for my table view. Whenever I
I have an XIB file containing a subview (footerButtonsView) containing two buttons. I change
I have a very simple subclass of UIViewController : @interface RoastChickenViewController : UIViewController {

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.