Note that there are some explanatory texts on larger screens.

plurals
  1. POUItextview adjusting contentOffset
    primarykey
    data
    text
    <p>I have a tableview with 2 uitextviews in a row each. When I select a textview the caret goes up out of view and when entering text I only see the bottom. This only happens the first time I select a text view. The textviews are simply alloc/inited and add as a subview to the cell's contentView, no delegate or other properties are set.</p> <p>It only happens to the textview I select first, so if I select the first textview, then the second only the first textview has it's contentOffset changed.</p> <p>I observed (using KVO) the contentOffset property of the textviews, and when I start editing the textview I get this stacktrace:</p> <pre><code>0 MyApp 0x0006c887 -[PostTableViewController observeValueForKeyPath:ofObject:change:context:] + 87 1 Foundation 0x00aad1e4 NSKeyValueNotifyObserver + 361 2 Foundation 0x00aacca6 NSKeyValueDidChange + 384 3 Foundation 0x00a933e2 -[NSObject(NSKeyValueObserverNotification) didChangeValueForKey:] + 123 4 UIKit 0x00d6f95e -[UIScrollViewScrollAnimation setProgress:] + 523 5 UIKit 0x00dd8234 -[UIAnimator(Static) _advance:] + 255 6 GraphicsServices 0x01d653a3 HeartbeatTimerCallback + 35 7 CoreFoundation 0x015638c3 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 19 8 CoreFoundation 0x01564e74 __CFRunLoopDoTimer + 1220 9 CoreFoundation 0x014c12c9 __CFRunLoopRun + 1817 10 CoreFoundation 0x014c0840 CFRunLoopRunSpecific + 208 11 CoreFoundation 0x014c0761 CFRunLoopRunInMode + 97 12 GraphicsServices 0x01d621c4 GSEventRunModal + 217 13 GraphicsServices 0x01d62289 GSEventRun + 115 14 UIKit 0x00d3fc93 UIApplicationMain + 1160 15 MyApp 0x00002389 main + 121 16 MyApp 0x00002255 start + 53 </code></pre> <p>It shows there is some animation happening but I can't find this anywhere, is there any way to see what starts the animation, beyond the timer (I guess there's some timer).</p> <p>This happens on 4.3 simulator, the 5.0 simulator is working, and I haven't got access to my device running 4.3 currently.</p> <p>How can I solve the text from disappearing above the textview (although it's more like the textview's frame moves up itself)?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload