简体   繁体   English

如何代表App Store位置更改iOS应用程序图标和背景?

[英]How to changing an iOS app icon and background on behalf of App Store location?

I am making an iOS app for a company which has offices in different countries(England, France, Germany). 我正在为一家在不同国家(英国,法国,德国)设有办事处的公司制作iOS应用程序。 Background colors and images for every country office will be different but functionality will be same. 每个国家办事处的背景颜色和图像将不同,但功能将相同。 App name will be same as well. 应用名称也一样。 I want to make app available for specific country. 我想为特定国家/地区提供应用。 For example Germany office app should only be available in Germany app store. 例如,德国办公室应用程序应该只在德国应用程序商店中提供。 Right now i am making 3 different apps. 现在我正在制作3个不同的应用程序。 One for each country office. 每个国家办事处一个。 Problem is that when i make an update then i have to do that in all those 3 apps. 问题是,当我进行更新时,我必须在所有这3个应用程序中执行此操作。 Is there any way to do all above things using one app. 有没有办法使用一个应用程序做所有上述事情。 So when i do an update then i just update one app. 因此,当我进行更新时,我只更新一个应用程序。 Or is there any way to make one app available in only England, Germany and France appStore and then when Germany office tries to download then it shows their background and images. 或者有没有办法让只有英国,德国和法国appStore的应用程序可用,然后当德国办事处试图下载然后它显示他们的背景和图像。 I do not want to give them an option in app to choose their country. 我不想让他们在应用程序中选择他们的国家。 Is there anyways to do that? 反正有没有这样做? Thanks in advance. 提前致谢。

Well yes and no. 是的,没有。 You can't change the App icon. 您无法更改应用程序图标。 It's in the app bundle which is readonly. 它在应用程序包中是readonly。 It is also not possible to check from which appstore the app is downloaded, so you will have to ask the user or use GPS. 也无法检查应用程序从哪个appstore下载,因此您必须询问用户或使用GPS。

The app colour scheme you will be able to change, just as the language. 您将能够更改的应用程序配色方案,就像语言一样。 You can use iOS own localization for this, but it will then be depended on the system language. 您可以使用iOS自己的本地化,但它将依赖于系统语言。

This is pretty simple. 这很简单。 There are two main ways to do that: 有两种主要方法:

  1. Using device settings (Language): You cannot change app Icon only according to Locale (device language settings). 使用设备设置(语言):您无法仅根据区域设置(设备语言设置)更改应用程序图标。 But, With this method you could get different graphics to every language and separate artwork for each language (buttons, Screenshots, backgrounds, texts and every other thing you can think of). 但是,通过这种方法,您可以为每种语言提供不同的图形,并为每种语言分别设计图形(按钮,屏幕截图,背景,文本以及您可以想到的所有其他内容)。 On your case that could be nice but it isn't perfect (it would be really easy to implement though). 在你的情况下,这可能是好的,但它并不完美(虽然这将很容易实现)。

  2. Understand where the user is: You can figure out where the user is, Problem with that is user can use the Germany App Store while being in France. 了解用户的位置:您可以确定用户的位置,问题是用户可以在法国使用德国App Store。 But I assume that if he is in France he would like to see the service that relevant to Frace origin. 但我认为,如果他在法国,他希望看到与Frace相关的服务。 You can do that through GPS, But that would make the app request permission to location services, Or you can check where he is from the IP he is using (see how to get external IP here: https://stackoverflow.com/a/13308528/1071887 ). 您可以通过GPS实现这一点,但这会使应用程序请求对位置服务的许可,或者您可以从他正在使用的IP中查看他的位置(请参阅如何获取外部IP: https//stackoverflow.com/a / 13308528/1071887 )。 When you has his external IP you could transfer it to approx. 当你拥有他的外部IP时,你可以将其转移到大约。 location through lots of services. 通过大量服务定位。 After you get where he is you can arrange the relevant artwork. 到达目的地后,您可以安排相关的艺术作品。

I assume what do you really need is a mix of both, Use Localisation to support all those 3 languages and use the location to support the appropriate graphics. 我假设您真正需要的是两者的混合,使用本地化来支持所有这三种语言并使用该位置来支持适当的图形。

If you do think you could use only 3 apps for this propose, You should use 3 targets on same project. 如果您认为此建议只能使用3个应用程序,则应在同一项目中使用3个目标。 This way it would be pretty easy to maintain. 这样很容易维护。

Hope that helps a bit. 希望有点帮助。

除了iOS App Store中的多个不同应用之外,没有(当前)方式可以拥有不同的图标。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM