简体   繁体   English

在appstore启动后更改iOS应用程序

[英]Change an iOS app after appstore launch

Are there any libraries or services for iOS to change a live (in the appstore) iPhone app UI? 是否有任何iOS库或服务可以更改iPhone应用程序UI的实时(在appstore中)?

The only way I can see it working now is to use a web view, but I would rather have a native solution. 我现在看到它工作的唯一方法是使用Web视图,但我宁愿使用本机解决方案。

Apparently you can control the UI style by using CSS properties (like styling a web page). 显然,您可以使用CSS属性(如样式化网页)来控制UI样式。 If you design your app with this approach, then you could store that CSS file on a server. 如果使用此方法设计应用程序,则可以将该CSS文件存储在服务器上。 When the app launches, you can tell it to read the CSS file from the server and style it's interface accordingly. 当应用程序启动时,您可以告诉它从服务器读取CSS文件并相应地设置其界面样式。 Thus if you made any changes in the CSS file, those changes would be reflected in the UI when the app is launched again. 因此,如果您对CSS文件进行了任何更改,那么当再次启动应用程序时,这些更改将反映在UI中。

Here's a link explaining the CSS approach to style buttons, tables, etc.. 这是一个解释样式按钮,表格等的CSS方法的链接。

see the webpage: NUI for iOS - Cocoa Controls 请参阅网页: 适用于iOS的NUI - Cocoa Controls

If you could be more specific on "change" you can do anything you want if you're pulling data from a server or website. 如果您对“更改”更具体,那么如果您从服务器或网站提取数据,则可以执行任何操作。 You'll only need to update the website, have the app ask for the data or an update, and the app will receive the new data. 您只需更新网站,让应用程序询问数据或更新,应用程序将收到新数据。

What i have done for some of my public and non public applications is to host a plist file on an amazon s3 server, very cost effective, even better if you have your own web server. 我为一些公共和非公共应用程序所做的是在亚马逊s3服务器上托管一个plist文件,非常经济,如果你有自己的网络服务器,那就更好了。 I will then parse that plist and have set up an architecture in my applications which will build the interface depending on the instructions for the plist. 然后我将解析该plist并在我的应用程序中设置一个架构,该架构将根据plist的指令构建接口。 As a simple example, lets say you want to decide on your application background color via a web pull. 举个简单的例子,假设你想通过网络拉动来决定应用程序的背景颜色。 You can have a dictionary in the plist file which will store 4 values with the keys backgroundR, backgroundB, backgroundG, backgroundA (RGB value and alpha). 您可以在plist文件中包含一个字典,该字典将存储4个值,其中包含backgroundR,backgroundB,backgroundG,backgroundA(RGB值和alpha)。 You can then parse the plist file and fill a UIColor with the rgb and alpha values and set it as the background color. 然后,您可以解析plist文件并使用rgb和alpha值填充UIColor并将其设置为背景颜色。 Don't forget to have built in default values in case the file can not be reached. 如果无法访问文件,请不要忘记内置默认值。

I agree with Gavin you can use CSS Styling tools like NUI , or the more polished nativeCSS to change the appearance of a native app after it's been released. 我同意Gavin你可以使用像NUI这样的CSS样式工具,或者更加优雅的nativeCSS来改变原生应用程序发布后的外观。

I've had nativeCSS apps through the app store and operate in this way. 我已经通过应用程序商店使用nativeCSS应用程序并以这种方式运行。 This doesn't really provide a functional change to the app, but allows areas to be unlocked when they are ready. 这并不能真正为应用程序提供功能更改,但允许区域在准备就绪时解锁。

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

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