2014年9月5日

视频,扫描,识别相关

摘要: 头文件包含AVFoundation.framework1、初始化Capture // Grab the back-facing camera AVCaptureDevice *backFacingCamera = nil; NSArray *devices = [AVCaptureDevice de... 阅读全文

posted @ 2014-09-05 16:48 innovator 阅读(333) 评论(0) 推荐(0)

AutoResizing & AutoLayout in Cocoa

摘要: [AutoResize] 控件初始化流程: 创建控件->设定预设坐标位置->设定自适应规则->AddToSubview(->自适应显示) 自适应规则示例: //控件靠左上角(右边和下边自适应) view.autoresizingMask = (UIViewAutoresizingFlexibleBo... 阅读全文

posted @ 2014-09-05 16:39 innovator 阅读(751) 评论(0) 推荐(0)

AppleScript in Cocoa

摘要: NSString *path = [[NSBundle mainBundle] pathForResource:@"××××" ofType:@"scpt"];NSAppleScript *script = [[NSAppleScript alloc] initWithContentsOfURL:[... 阅读全文

posted @ 2014-09-05 16:34 innovator 阅读(209) 评论(0) 推荐(0)

Screen Saver(屏幕保护设置) in Cocoa

摘要: 可以从代码中对相应文件下的对应参数进行调整,重启Mac后,屏保相应参数则会对应更新。文件地址:~/Library/Preferences/ByHost/com.apple.screensaver.××××××.plist相关参数:idleTime等待时间:指定时间(以秒为单位)后,则会显示屏保程序,... 阅读全文

posted @ 2014-09-05 16:32 innovator 阅读(1359) 评论(0) 推荐(0)

Shell in Cocoa

摘要: 头文件相关#include 方法相关system("");带默认密码的Shell命令system("echo | sudo -S ... -r now"); 阅读全文

posted @ 2014-09-05 16:29 innovator 阅读(136) 评论(0) 推荐(0)

导航