1

我已经使用 iOS 6 sdk 编译了一个 iOS 应用程序。当我在 iOS7 中运行此应用程序时,它显示 iOS7 默认 UIAlertView 和 UIActionSheet 即白色。但是显示的键盘是传统的灰色,即iOS6。

似乎 UIAlertView 和 UIActionSheet 是 iOS 的一部分,代码只是触发它们显示,而键盘是开发 sdk 的一部分,因为我使用 sdk7 编译它显示白色键盘,当我使用 sdk6 编译时它在运行 iOS7 的设备中显示灰色键盘。请告诉是这种情况还是我在某个地方弄错了

无论如何我使用iOS6 sdk编译代码并在iOS7中显示白色键盘。

4

2 回答 2

2

No there is not way to get the new iOS 7 keyboard with the iOS 6 SDk.

For compatibility reasons the old keyboard is shown, in iOS 7 the keyboards is translucent and show the underlying view thru it. To make sure old apps don't break iOS 7 will show the old keyboard when the app is not compiled with the iOS 7 SDK.

于 2013-09-24T09:55:18.057 回答
0

正如您所说,您使用的外部视图(如 UIAlertView)是操作系统的一部分,因此调用它们将调用新视图,而键盘取决于您用于编译的 SDK。

我认为不使用 iOS7 编译就无法显示新键盘

于 2013-09-24T09:53:50.283 回答