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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:48:52+00:00 2026-05-28T01:48:52+00:00

On an iPad running iOS 4.3.5 I get this error: MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown.

  • 0

On an iPad running iOS 4.3.5 I get this error:

MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown.  Name: NSInvalidArgumentException Reason: -[UITextField hasText]: unrecognized selector sent to instance 0x6f692d0
  at MonoTouch.UIKit.UITextField.get_HasText () [0x00000] in <filename unknown>:0

And indeed looking at Apple’s documentation, there is no “hasText” for UITextField. But it works, at least on iOS5 devices.
What is going on here? MT is 5.0.1 and the deployment target is set to 4.3. Is this selector new in iOS 5? But why is not documented?

René

  • 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-28T01:48:53+00:00Added an answer on May 28, 2026 at 1:48 am

    Shivan is right — HasText is a MonoTouch thing.

    Here is one place where HasText is listed (it was introduced in MonoTouch between 4.2 & 5.0): http://ios.xamarin.com/Releases/MonoTouch_5/API-diff-from-4.2

    If you want HasText, you need to run on iOS 5.0 & newer.

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

Sidebar

Related Questions

When running my iOS program on an iPad, the console gives the following error
I get a SIGABRT / ran out of trampolines error when running my MonoTouch
I am testing on an iPad a Monotouch app. Running iOS 4.2 The iPad
I have an app that runs on iPad and iPhone running iOS 3.2, but
I don't have access to an iPad running iOS 5 (and since Apple doesn't
I'm currently working on an OpenGL ES 1.1 app for the iPad its running
Apple advises using the following code to detect whether running on an iPad or
I'm creating an iPad application which needs a UIPopoverController like this one (I mean,
I'm wondering if it's possible to detect whether a browser is running on iOS,
I have an app that struggles to perform well on iOS 5 running on

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.