iOS运行时本地化库SMLocalize

SMLocalize是一个iOS库,允许开发者在应用程序运行时动态更改本地化设置。该库支持iOS 9.0+ 和 Swift 5.0+。

基本使用方法

在AppDelegate文件中:

import SMLocalize

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate, ReloadableAppDelegate {
    var window: UIWindow?

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        // 初始化SMLocalize
    }
}
zip
SMLocalize-master.zip 预估大小:67个文件
folder
SMLocalize-master 文件夹
file
.travis.yml 551B
file
LICENSE 1KB
file
_Pods.xcodeproj 27B
folder
Example 文件夹
folder
Pods 文件夹
file
Manifest.lock 272B
folder
Target Support Files 文件夹
folder
Pods-SMLocalizeExample 文件夹
file
Pods-SMLocalizeExample-frameworks-Release-output-files.xcfilelist 66B
file
Pods-SMLocalizeExample-frameworks-Release-input-files.xcfilelist 147B
file
Pods-SMLocalizeExample-frameworks-Debug-output-files.xcfilelist 66B
file
Pods-SMLocalizeExample.debug.xcconfig 673B
file
Pods-SMLocalizeExample-frameworks-Debug-input-files.xcfilelist 147B
file
Pods-SMLocalizeExample-Info.plist 828B
file
Pods-SMLocalizeExample.modulemap 134B
file
Pods-SMLocalizeExample-acknowledgements.markdown 1KB
file
Pods-SMLocalizeExample-acknowledgements.plist 2KB
file
Pods-SMLocalizeExample.release.xcconfig 673B
file
Pods-SMLocalizeExample-dummy.m 148B
file
Pods-SMLocalizeExample-umbrella.h 336B
file
Pods-SMLocalizeExample-frameworks.sh 8KB
folder
SMLocalize 文件夹
file
SMLocalize-Info.plist 828B
file
SMLocalize-umbrella.h 312B
file
SMLocalize.modulemap 110B
file
SMLocalize-prefix.pch 195B
file
SMLocalize-dummy.m 124B
file
SMLocalize.xcconfig 452B
folder
Local Podspecs 文件夹
file
SMLocalize.podspec.json 606B
folder
Pods.xcodeproj 文件夹
folder
xcshareddata 文件夹
folder
xcschemes 文件夹
file
SMLocalize.xcscheme 3KB
folder
project.xcworkspace 文件夹
folder
xcshareddata 文件夹
file
IDEWorkspaceChecks.plist 238B
file
contents.xcworkspacedata 135B
file
project.pbxproj 27KB
folder
SMLocalizeExample 文件夹
file
ViewController.swift 4KB
file
Info.plist 1KB
file
AppDelegate.swift 1KB
file
TableViewCell.xib 4KB
folder
ar.lproj 文件夹
file
Main.strings 406B
file
Localizable.strings 169B
folder
Base.lproj 文件夹
file
LaunchScreen.storyboard 2KB
file
Main.storyboard 11KB
file
Localizable.strings 157B
folder
fr.lproj 文件夹
file
Main.strings 392B
file
Localizable.strings 166B
file
TableViewCell.swift 631B
folder
Assets.xcassets 文件夹
folder
Arrow.imageset 文件夹
file
Arrow@2x.png 1KB
file
Arrow.png 463B
file
Arrow@3x.png 2KB
file
Contents.json 372B
folder
LowVolume.imageset 文件夹
file
LowVolume@2x.png 891B
file
LowVolume.png 374B
file
LowVolume@3x.png 1KB
file
Contents.json 384B
folder
HighVolume.imageset 文件夹
file
HighVolume.png 589B
file
HighVolume@3x.png 2KB
file
Contents.json 387B
file
HighVolume@2x.png 2KB
folder
AppIcon.appiconset 文件夹
file
Contents.json 849B
file
Contents.json 62B
file
Podfile.lock 272B
file
Podfile 86B
folder
SMLocalizeExample.xcworkspace 文件夹
folder
xcshareddata 文件夹
file
IDEWorkspaceChecks.plist 238B
file
contents.xcworkspacedata 235B
folder
SMLocalizeExample.xcodeproj 文件夹
folder
project.xcworkspace 文件夹
folder
xcshareddata 文件夹
file
IDEWorkspaceChecks.plist 238B
file
contents.xcworkspacedata 162B
file
project.pbxproj 19KB
file
README.md 5KB
folder
SMLocalize 文件夹
folder
Assets 文件夹
folder
.gitkeep 文件夹
folder
Classes 文件夹
file
SMLocalize.swift 10KB
folder
.gitkeep 文件夹
file
.gitignore 395B
file
SMLocalize.podspec 2KB
...
zip 文件大小:66.57KB