iOS-CustomLocalisator 使用教程

iOS-CustomLocalisator 使用教程

iOS-CustomLocalisatorA custom localisator class which allows to change the app language without having to restart it.项目地址:https://gitcode.com/gh_mirrors/io/iOS-CustomLocalisator

1. 项目的目录结构及介绍

iOS-CustomLocalisator/
├── Localisator/
│   ├── Localisator.swift
│   └── Localisator.h
├── Localisator_Demo-objC/
│   ├── main.m
│   ├── AppDelegate.h
│   ├── AppDelegate.m
│   └── ViewController.h
├── Localisator_Demo-swift/
│   ├── main.swift
│   ├── AppDelegate.swift
│   └── ViewController.swift
├── Screenshots/
│   └── screenshot.png
├── .gitignore
├── LICENSE.md
├── README.md
└── iOS-CustomLocalisator.podspec
  • Localisator: 包含核心的本地化类文件。
  • Localisator_Demo-objC: Objective-C 版本的示例项目。
  • Localisator_Demo-swift: Swift 版本的示例项目。
  • Screenshots: 项目截图。
  • .gitignore: Git 忽略文件。
  • LICENSE.md: 项目许可证。
  • README.md: 项目说明文档。
  • iOS-CustomLocalisator.podspec: CocoaPods 配置文件。

2. 项目的启动文件介绍

Swift 版本

  • main.swift: 应用程序的入口文件,负责启动 AppDelegate。
  • AppDelegate.swift: 应用程序的委托类,处理应用程序的生命周期事件。

Objective-C 版本

  • main.m: 应用程序的入口文件,负责启动 AppDelegate。
  • AppDelegate.h: 应用程序委托类的头文件。
  • AppDelegate.m: 应用程序委托类的实现文件。

3. 项目的配置文件介绍

  • iOS-CustomLocalisator.podspec: CocoaPods 配置文件,用于定义项目的依赖和版本信息。
Pod::Spec.new do |spec|
  spec.name         = "iOS-CustomLocalisator"
  spec.version      = "1.0.0"
  spec.summary      = "A custom localisator class which allows to change the app language without having to restart it."
  spec.description  = <<-DESC
                      Localisator is a small class you can use in order to change languages from within your iOS app without having to restart it. It’s compatible with the localizable strings file so you don’t have to.
                      DESC
  spec.homepage     = "https://github.com/micazeve/iOS-CustomLocalisator"
  spec.license      = { :type => "MIT", :file => "LICENSE.md" }
  spec.author       = { "Michaël Azevedo" => "michael.azevedo@example.com" }
  spec.platform     = :ios, "9.0"
  spec.source       = { :git => "https://github.com/micazeve/iOS-CustomLocalisator.git", :tag => "#{spec.version}" }
  spec.source_files = "Localisator/**/*.{h,m,swift}"
  spec.public_header_files = "Localisator/**/*.h"
end

以上是 iOS-CustomLocalisator 项目的目录结构、启动文件和配置文件的介绍。希望这份文档能帮助你更好地理解和使用该项目。

iOS-CustomLocalisatorA custom localisator class which allows to change the app language without having to restart it.项目地址:https://gitcode.com/gh_mirrors/io/iOS-CustomLocalisator

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

裘晴惠Vivianne

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值