ResourceKit-master.zip

  • Yoyoyoyoyo1
    了解作者
  • Visual C++
    开发工具
  • 1.7MB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 3
    下载次数
  • 2020-12-12 08:22
    上传日期
ressource kit to play mtk
ResourceKit-master.zip
内容介绍
# ResourceKit [![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE) ![platform](https://cocoapod-badges.herokuapp.com/p/ResourceKit/badge.png) Enable autocomplete use resources in swift project. [まだハードコードで消耗してるの? ResourceKitで安全コーディング!](http://qiita.com/bannzai/items/e9bf5904940fb1ed5082) ## How does ResourceKit work? ResouceKit makes your code that uses write for resources: - `Becomes clear`, nessary to cast and guessing easy what a method will return. - `Checked`, the mistaken character doesn't enter your app code. - `Autocompleted`, never have to exist hard code when using resource. ##### Standard use resources. ```swift // Get ViewController let storyboard = UIStoryboard(name: "Storyboard", bundle: nil) let viewController = storyboard.instantiateViewController(withIdentifier: "XXXX") as! ViewController // PerformSegue performSegue(withIdentifier: "Open", sender: sender) // Nib let nib = UINib(nibName: "TableViewCell", bundle: nil) let cell = nib.instantiate(withOwner: nil, options: nil)[0] as! TableViewCell ``` Please see `ResouceKitDemo` for more information, or [Examples.md](https://github.com/bannzai/ResourceKit/blob/master/Documents/Examples.md) ##### Use ResourceKit. ```swift // Get ViewController let viewController = ViewController.instanceFromStoryboard() // <- viewController is ViewController class. // PerformSegue performSegueOpen() // <- can write to use autocomplete. // Nib let cell = TableViewCell.Xib.view() // <- easy get instance. ``` ## Features After installing ResourceKit into your project, and build it. ResourceKit will correct any missing/changed/added resources. ResouceKit supports resource types. - [Storyboards](https://github.com/bannzai/ResourceKit/blob/master/Documents/Examples.md#viewcontroller-from-storyboard) - [Segues](https://github.com/bannzai/ResourceKit/blob/master/Documents/Examples.md#use-segue-any-uiviewcontroller-sub-class) - [Nibs](https://github.com/bannzai/ResourceKit/blob/master/Documents/Examples.md#nib) - [Reusables](https://github.com/bannzai/ResourceKit/blob/master/Documents/Examples.md#reusalbes) - [Images](https://github.com/xcodeswift/xcproj/blob/master/Sources/xcproj/PBXProj%2BHelpers.swift#L122) - [LocalizedStrings](https://github.com/bannzai/ResourceKit/blob/master/Documents/Examples.md#localizedstring) ## Installation CocoaPods is the recommended way of installation, as this avoids including any binary files into your project. ### Cocoapods 1. Add `pod 'ResourceKit'` to your Podfile and run pod install. 2. In Xcode: Click on your project in the file list, choose your target under TARGETS, click the Build Phases tab and add a New Run Script Phase by clicking the little plus icon in the top left. 3. Drag the new Run Script phase above the Compile Sources phase and below Check Pods Manifest.lock, expand it and paste the following script: ``"$PODS_ROOT/ResourceKit/ResourceKit"`` 4. Build your project, in Finder you will now see a ResourceKit.generated.swift in the $SRCROOT-folder, drag the ResourceKit.generated.swift files into your project and uncheck Copy items if needed ### Manual 1. Download a [ResourceKit](https://github.com/bannzai/ResourceKit/releases/) , unzip it and put it your source root directory. 2. In Xcode: Click on your project in the file list, choose your target under TARGETS, click the Build Phases tab and add a New Run Script Phase by clicking the little plus icon in the top left 3. Drag the new Run Script phase above the Compile Sources phase, expand it and paste the following script: "$SRCROOT/ResourceKit" 4. Build your project, in Finder you will now see a `ResourceKit.generated.swift` in the $SRCROOT-folder, drag the `ResourceKit.generated.swift` files into your project and uncheck Copy items if needed. ## TODO: - [x] Cocoapods support. - [x] Images support. - [x] LocaliazedString Support. - [x] Adjust indent. - [x] Collaboration [SegueAddition](https://github.com/bannzai/SegueAddition). - [x] User Chose Generate Resource Support. ## Help: ##### Q.When want to use a Third party UI Library, how should it be done A. You can write `import CustomView` to `ResourceKit.generated.swift`. And build again, but It's left `import CustomView`! ## License [ResourceKit](https://github.com/bannzai/ResourceKit) is released under the MIT license. See LICENSE.txt for details.
评论
    相关推荐
    • MTK_Resource.rar
      MTK手机通讯,支持MTK各类型字库 如6226,6225可编辑开机画面,手机铃声
    • MTK.rar
      MTK专题集(讲述MTK各个重要功能模块).对于初学者非常有用。
    • 91331962MTK_resource.rar
      MTK开发资料,初级入门说明文档...比较简单
    • mtk_timer.rar
      Mediatek SoCs General-Purpose Timer handling.
    • MTK 链表源程序
      MTK链表源程序 纯c语言编写,使用独立内存管理, 可以增加头,增加尾,删除头,删除尾等操作
    • MTK Flash Tool V6.1.8
      Extra Options: 1- External Clock (13MHz, 26MHz, 52MHz) 2- Base band Chip Types MT6205, MT6205b, MT6208, MT6218, MT6218b MT6217, MT6219, ...4- Multi-bin download Option (Compare resource project id)
    • MTK 11A添加APP示例
      此资料包含MTK官方文档11A_VenusFW_Customization.pdf,以及抓取出其中对应代码,并加以说明,使你能快速上手! 【目 录】: 11A_VenusFW_Customization.pdf -- 11A添加APP官方PDF文档 10A_MMI_Resource_Training....
    • MTK_resource.rar
      本站以C语言和Java语言、嵌入式开发、算法实现为主,源码数量达几十万个,有200多个分类,很多都是本站会员的私家珍藏,互联网上其他地方是找不到的MTK_resource.rar
    • MTK MMI 资料合集
      包含5个MMI的文档,分别是 MMI Resource & Customization Tool, MMI training courses,MMI, MMI层的整体架构_MMI Platform Source Code Training, MMI实例教程。
    • USB-COM(HL340).rar
      usb转串口,找了很久才找到,现在别的地方很难下到,要不用不了,我这个可以用 HL340D 的