Skip to content
bench for ios
Objective-C Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
XcodeCustom
bench_ios.xcodeproj
bench_ios
bench_iosTests
bench_iosUITests
extention
resources
.DS_Store
.gitignore
LICENSE
PackageMachine.dmg
README.md
bench_ios.podspec
ccui说明.jpg
ccui说明.psd
updateList.md

README.md

bench_ios

bench_ios开发指南
解析文章

License

'bench_ios' is a framework for efficient development.
It is not only itself, but also provides a scheduling mode, which can be accessed to different modules according to their own business needs.
You can use it with UI Component in UITemplateApp

Podfile install

To integrate bench_ios into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'

target 'TargetName' do
pod 'bench_ios'
end

Then, run the following command:

$ pod install

When use, just import 'ccs.h' in your .pch file.
If you use 'XcodeCustom' as project-template, just add pch path in 'Build Settings' - 'Prefix Header' as '$(SRCROOT)/projectname/projectname-prefix.pch'

// xxx.pch
import "ccs.h"

以增加开发效率为目的集成bench_ios开发。
bench_ios 不仅仅是它本身,还提供的是一种调度模式,可以根据自己业务需求接入不同模块来使用。详见 组件化分类使用方法

模板使用

参考XcodeCustom文件夹下README.md 包括工程模板和类模板,模板只需添加一次,Xcode更新后需要重新添加

Xcode 工程模板

模板文件在XcodeCustom文件夹下。
使用工程模板会初始化 CC_AppDelegate CC_ViewController pch 文件。
/Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/Project\ Templates/Base 目录下面添加bench_ios Application文件夹即可。

  1. 打开Xcode选择 File - New - Project
  2. 滚到下面选择 bench_ios Application > Custom Single App 创建一个新工程。
  3. 在 targets > Build Settings > Prefix Header 添加 xxx 工程的pch的路径。$(SRCROOT)/xxx/xxx-prefix.pch
  4. 使用pod安装bench_ios。

Xcode 类模板

类模板支持 CC_AppDelegate CC_ViewController CC_TabBarController
/Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/File\ Templates 目录下面添加bench_ios Class文件夹即可。
新建类使用 New File > bench_ios Class > Cocoa Touch Class

You can’t perform that action at this time.