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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:37:21+00:00 2026-05-26T12:37:21+00:00

Current Code: – (void)textFieldDidBeginEditing:(UITextField *)textField { NSLog(@begin edit: %@, textField); } Related output: 2011-10-30

  • 0

Current Code:

- (void)textFieldDidBeginEditing:(UITextField *)textField {
    NSLog(@"begin edit: %@", textField);
}

Related output:

2011-10-30 09:12:08.436 My Project[83470:207] begin edit: <UITextField: 0x6c349d0; frame = (112 2; 182 39); text = 'My Name'; clipsToBounds = YES; opaque = NO; autoresize = RM+BM; layer = <CALayer: 0x6c34af0>>

So I know the textfield frame is there, but when I try to grab it:

code:

- (void)textFieldDidBeginEditing:(UITextField *)textField {
    NSLog(@"begin edit: %@", [textField frame]);
    // also tried textField.frame -- same thing
}

error:

Thread 1: EXC_BAD_ACCES (code=1, address=0x42e00000)

output:

(lldb)

I’ve been spinning my wheels on this and I’m not sure where to go next. Thanks for reading my question.

** EDIT – cell xib instantiation (where the textfield lives) **

note: the textfield comes from a xib file that is just a table cell.

static NSString *CellIdentifier = @"ValidatedTextViewTableCell";

ValidatedTextViewTableCell *cell = (ValidatedTextViewTableCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
    [[NSBundle mainBundle] loadNibNamed:@"ValidatedTextViewTableCell" owner:self options:nil];
    cell = validatedTextViewTableCell;
    self.validatedTextViewTableCell = nil;
}
  • 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-26T12:37:22+00:00Added an answer on May 26, 2026 at 12:37 pm

    This won’t work:

    NSLog(@"begin edit: %@", [textField frame]);
    

    Because frame is a CGRect type, not an object, so the %@ format specifier, which is for objects only, blows up when handed it. You’ll need to log the frame by each of its components, like this:

    NSLog(@"begin edit: %f, %f, %fx%f", [textField frame].origin.x [textField frame].origin.y, [textField frame].size.width, [textField frame].size.height);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Converting my current code project to TDD, I've noticed something. class Foo { public
This question is related to a previous question of mine That's my current code
This is my current code: public void WriteXml(System.Xml.XmlWriter writer) { CloseConnection(); using (Stream source
My current code is : DELIMITER \\ CREATE PROCEDURE sample (IN _car VARCHAR(15)) BEGIN
I have created MD5 hash.Its working fine now.I want output in 16 character.Current Code
Current code: public static void WhoIsOnline(string worldName, WhoIsOnlineReceived callback) { string url = http://www.tibia.com/community/?subtopic=worlds&world=
The current code of one of the views in my project is a large,
current code I've built function to do something over collection of jQuery elements: var
My current code looks like the following. How can I pass my array to
My current code to the effect of: if( objectPointer != NULL){ delete objectPointer; }

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.