Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

empty uitextfield crash

I can repeatedly get my app to crash by double-clicking inside the textfield. It seems like this behavior started with iOS7.


The textfield is empty except for the placeholder string. The settings are:


- clear button: appears when editing

- clear when editing begins - true

- capitalization: none

- correction: no

- keyboard: number pad

- appearance: default

- return key: default


None of the delegate functions are acting on on this textfield. I think this is a problem with iOS7.


Does anyone have a fix for this issue?

iPad 2, iOS 7.0.4

Posted on Feb 4, 2014 3:51 PM

Reply
4 replies

Feb 4, 2014 4:08 PM in response to msuper69

Sorry: when I say double click I mean: I clicked on the textfield once to gain the focus (opens the keyboard) on this component then I click inside the text box again -> crash.


I have a symbolic breakpoint on CGPostError but the trace is not helpful:


CoreGraphics`CGPostError:

0x2e14ba70: sub sp, #12

0x2e14ba72: push {r7, lr}

0x2e14ba74: mov r7, sp

0x2e14ba76: sub sp, #4

0x2e14ba78: add.w r9, r7, #8

0x2e14ba7c: stm.w r9, {r1, r2, r3}

0x2e14ba80: add.w r1, r7, #8

0x2e14ba84: str r1, [sp]

0x2e14ba86: bl 0x2e14ba94 ; CGPostErrorWithArguments

0x2e14ba8a: add sp, #4

0x2e14ba8c: pop.w {r7, lr}

0x2e14ba90: add sp, #12

0x2e14ba92: bx lr


Trace goes:

CGPostError

UIApplicationMain

main

Feb 4, 2014 4:23 PM in response to msuper69

I found others talking about the same problem: http://stackoverflow.com/questions/19599266/invalid-context-0x0-under-ios-7-0-an d-system-degradation


I did what this post suggested. I created a new single page project and dropped a uitextfield on it from storyboard (no code of my own). Repeat the process I described click the text field, wait just a second, click it again -> whole bunch of CGContext warnings output to console window.

empty uitextfield crash

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.