Make a subclass of UITextField and override the becomeFirstResponder() and resignFirstResponder() methods (inherited from UIResponder) so that its border style changes when it is the first responder. You can use the borderStyle property of UITextField to accomplish this. Use your subclass for the text fields in DetailViewController.