Added iPad example
Supports orientation change