“First Responder” – Did I get that right?

Right overall picture, wrong implementation details in the first paragraph. A “First Responder” in a NibFile is an Object … No, actually, First Responder is nil. Connecting a UI control (e.g., button) to First Responder in a nib is equivalent to [control setTarget:nil] in code. The reason for the First Responder fake-object in the nib … Read more

iOS app “next” key won’t go to the next text field

The return key doesn’t do anything special in a text field by default. You need to explicitly change the first responder: – (BOOL)textFieldShouldReturn:(UITextField *)theTextField { if (theTextField == self.textPassword) { [theTextField resignFirstResponder]; } else if (theTextField == self.textUsername) { [self.textPassword becomeFirstResponder]; } return YES; }

Cannot set searchBar as firstResponder

I noticed this issue too. What seems to happen is the call to becomeFirstResponder is done when the searchController is still ‘loading’. If you comment out becomeFirstResponder you notice that there is no difference. So we need a way to call becomeFirstResponder after the searchController is ‘done’ loading. When I looked at various delegate methods … Read more

iPad keyboard will not dismiss if modal ViewController presentation style is UIModalPresentationFormSheet

This has been classified as “works as intended” by Apple engineers. I filed a bug for this a while back. Their reasoning is that the user is often going to be entering data in a modal form so they are trying to be “helpful” and keep the keyboard visible where ordinarily various transitions within the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)