海康威视 DVR IPC, IOS系统的SDK包。用于二次开发
2015-12-22 16:05
260 查看
海康 最新的 sdk demo(包含整套sdk(32位),ios代码,,代码都可以编译通过,适合做集成,二次开发。核 心代码:
-(void)viewWillAppear:(BOOL)animated{
if (isInit) {
isInit=NO;
if (camera ==
nil) {
self.cameraView.touchViewDelegate=self;
UIPinchGestureRecognizer *pinch = [[UIPinchGestureRecognizer
alloc] initWithTarget:self
action:@selector(pinchAction:)];
[self.cameraView
addGestureRecognizer:pinch];
//视频预览用view来接收
camera = [TGDCamera
cameraWithView:self.cameraView];
}
//登录摄像头
[camera loginWithIpAddress:@"192.168.1.245" userName:@"admin" password:@"skyinno1"];
}
}
-(void)viewWillAppear:(BOOL)animated{
if (isInit) {
isInit=NO;
if (camera ==
nil) {
self.cameraView.touchViewDelegate=self;
UIPinchGestureRecognizer *pinch = [[UIPinchGestureRecognizer
alloc] initWithTarget:self
action:@selector(pinchAction:)];
[self.cameraView
addGestureRecognizer:pinch];
//视频预览用view来接收
camera = [TGDCamera
cameraWithView:self.cameraView];
}
//登录摄像头
[camera loginWithIpAddress:@"192.168.1.245" userName:@"admin" password:@"skyinno1"];
}
}
相关文章推荐
- iOS 中KVC、KVO、NSNotification、delegate 总结及区别
- iOS中的2x,3x问题
- iOS中的汉字转换成拼音
- speex编译静态库for iOS
- ios7之后导航栏状态栏小记
- 仿ios日期选择器
- iOS获取一个控件的子控件的方法
- iOS9 企业级账号 无法安装的问题
- iOS证书及ipa包重签名探究
- iOS 计算器
- iOS之H5和Native混合开发
- iOS开发实用技术之第三方登陆
- TableView的重用机制
- iOS仿滚动轮盘键盘
- ios...参数(不定参数)
- [转] iOS使用NSMutableAttributedString 实现富文本(不同颜色字体、下划线等)
- ios数组排序
- iOS常用判断的宏定义:系统版本号,屏幕宽高,设备型号, 自定义NSLog等
- 新技能get,在ios下提示“@synthesize of ‘weak’ property is only allowed in ARC or GC mode”
- iOS 城市定位 英文