我想构建一个支持多语言的 iPhone 应用程序。因为我想用用户从我的应用程序设置中的一组语言中选择的语言输入值。因此,它应该显示选定的语言键盘。
例如:如果用户从我的应用程序设置中选择了法语。然后在我的应用程序的所有 UITextFields 中,用户应该能够用法语输入值。因此,当键盘打开时,我需要确保它是法语键盘,它每次都显示而不是默认语言键盘。
所以问题是,是否可以根据应用程序设置中选择的语言在用户点击 UITextField 时显示特定语言键盘?如果是,那么如何?
因为我是android的新手请给我链接教程在服务器上发布xml数据.我面临的问题是执行post请求
public void uploadFileToServer()
{
DefaultHttpClient httpClient = new DefaultHttpClient();
HttpPost httppost = new HttpPost(url_context + "/orders/order");
httppost.addHeader("Accept", "text/xml");
httppost.addHeader("Content-Type", "application/xml");
try
{
StringEntity entity = new StringEntity(xmlString, "UTF-8");
entity.setContentType("application/xml");
httppost.setEntity(entity);
HttpResponse response = httpClient.execute(httppost);
BasicResponseHandler responseHandler = new BasicResponseHandler();
String strResponse = null;
if (response != null)
{
try {
strResponse = responseHandler.handleResponse(response);
} catch (HttpResponseException e)
{
e.printStackTrace();
} catch (IOException e)
{
e.printStackTrace();
}
}
}
catch (Exception ex)
{
ex.printStackTrace();
}
}
Run Code Online (Sandbox Code Playgroud)