Common utility about device for iOS