Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>you should return NO in: </p> <pre><code> -(BOOL) textViewShouldEndEditing:(UITextView *)textView </code></pre> <p>if you would like to show keyboard at all times. You should handle cases, which keyboard should be hidden, by returning YES to this delegate function.</p> <p>edit:</p> <p>I dug a little more, when <strong>[tableView endUpdates]</strong> called, it basically does 3 things : </p> <ol> <li>Disables user interaction on the <em>tableView</em></li> <li>Updates cell changes </li> <li>Enables user interaction on the <em>tableView</em> </li> </ol> <p>The difference between SDKs(platforms) is at <strong>[UIView setUserInteractionEnabled]</strong> method. As UITableView does not overrite <em>setUserInteractionEnabled</em> method, it is called from super (UIView).</p> <p>iPhone when <strong>setUserInteractionEnabled</strong> called, looks for a private field <strong>_shouldResignFirstResponderWithInteractionDisabled</strong> which returns <strong>NO</strong> as default, so does not resign the first responder <strong>(UITextView)</strong> </p> <p>But on iPad there is no such check AFAIK, so it resignes <strong>UITextView</strong> on <strong>step 1</strong>, and sets focus and makes it first responder on <strong>step 3</strong> </p> <p>Basically, textViewShouldEndEditing, which allows you to keep focus, according to SDK docs, is your only option ATM.</p> <blockquote> <p>This method is called when the text view is asked to resign the first responder status. This might occur when the user tries to change the editing focus to another control. Before the focus actually changes, however, the text view calls this method to give your delegate a chance to decide whether it should.</p> </blockquote>
    singulars
    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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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