How to customize SearchViewController

Paul's Avatar

Paul

11 Sep, 2013 10:28 PM

Is it possible to customize the UI of the SearchViewController? If so, would the best way to do this be to subclass the SearchViewController class and then create my own xib?

Thanks,
Paul

  1. 1 Posted by Nicolò on 12 Sep, 2013 09:10 AM

    Nicolò's Avatar

    Hello

    I guess it depends on the extent of customizations. Subclassing the controller and create its own xib is cleaner. You can also create a ReaderViewController subclass that will instantiate your search view controller subclass rather than the default one.

    Edit: be careful in overriding original methods, you should check if it is necessary to invoke the super implementation and write your method accordingly.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac