Added ApiManager.
Fixed a bug for IS_IPAD.