Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zhuchaowe/ModelCoder
ModelCoder can Automatic generate Objective-C code by JSON string.
https://github.com/zhuchaowe/ModelCoder
Last synced: 3 months ago
JSON representation
ModelCoder can Automatic generate Objective-C code by JSON string.
- Host: GitHub
- URL: https://github.com/zhuchaowe/ModelCoder
- Owner: zhuchaowe
- License: mit
- Created: 2014-08-14T14:05:52.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-02T07:59:25.000Z (almost 10 years ago)
- Last Synced: 2024-07-19T11:03:21.429Z (4 months ago)
- Language: Objective-C
- Size: 253 KB
- Stars: 37
- Watchers: 6
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ModelCoder
==========ModelCoder can Automatic generate Objective-C code by JSON string.
####json一键转换为EasyIOS中Model类的工具。
##Usage
* 1.Installation `Homebrew`
If you have `homebrew` installed, just jump to the second step
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
* 2.Installation `objc-run`
If you have `objc-run` installed, just jump to the third stepbrew install objc-run
find the objc-run path and Make sure the executable bit is set like this:chmod u+x objc-run
* 3.curl download the `main.m`
If you have download the `main.m`, just jump to the fourth stepcurl -O https://raw.githubusercontent.com/zhuchaowe/ModelCoder/master/main.m
* 4.run!!!
objc-run main.m className savePath http://the.json.url.com keyPath[optional]##Example
* 1.read from json url
objc-run main.m Test /Users/easyios/Desktop/objc http://t.cn/RPjToNg
* 2.read from json fileobjc-run main.m Test /Users/easyios/Desktop/objc /Users/easyios/Desktop/objc/EasyIOS.json
* 3.read from json for keypathobjc-run main.m Test /Users/easyios/Desktop/objc http://t.cn/RPjToNg subspecs/xcconfig