V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  SwiftSandbox  ›  全部回复第 1 页 / 共 1 页
回复总数  3
2015 年 8 月 26 日
回复了 cxq 创建的主题 iDev MAC App 开发, 能不能运行 mac 本地的脚本?
Enter the code inside a Mac app and you can read the command line parameters. Is that what you are looking for help with?
2015 年 8 月 25 日
回复了 shanksxiao 创建的主题 iDev iOS 开发的最佳实践、MVVM 架构以及编程艺术
Here is a another list of iOS best practices: https://github.com/futurice/ios-good-practices
2015 年 8 月 25 日
回复了 cxq 创建的主题 iDev MAC App 开发, 能不能运行 mac 本地的脚本?
To read Mac app command line arguments:

NSUserDefaults *standardDefaults = [NSUserDefaults standardUserDefaults];
NSString *strArg = [standardDefaults stringForKey:@"str"];
NSInteger intArg = [standardDefaults integerForKey:@"x"];

// Examples: here is command line with app and two parameters
yourApp -str "StringArg" -x 99
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1077 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 22:43 · PVG 06:43 · LAX 15:43 · JFK 18:43
♥ Do have faith in what you're doing.