Added a deviceType method to UIDevice.