Added iPad support for sample.