I have a Flex application which runs on iPad, now I want the same app to run on iPhone with some modifications to the view interfaces in order to preserve their look and feel. The question is: Is it possible to tell when the app is running on iPad and when is running on iPhone to do such thing? I know that by doing this:

```
flash.system.Capabilities.version.indexOf("IOS");

```

you can know if the app is running on iOS, but you don't know which device is.

I hope you can help me.

Thanks in advance.