简体   繁体   中英

Use settings.bundle of custom framework in application

I am creating a framework for iOS applications. I need some configurable parameters from end users at run time like key, specific set of characters or something else.

These things will be used in my framework not in the application. So I have created Settings.bundle for my framework and I want that whosoever uses this framework will have in-app settings that I desire and have created in that framework project.

Is there a way I can do this?

It's up to hosting app to include such params in Settings. There is no way to enforce the app using your framework to include your params in app settings. From the framework perspective config params should be included in public API. For example the key should be argument to your framework initializer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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