设置tableViewCell颜色
来源:互联网 发布:获取手机的gps数据 编辑:程序博客网 时间:2024/05/01 23:33
1.设置tableViewCell的颜色的方法
2.关于设置状态栏颜色的方法,在iOS6 与 7中设置方法不同。有一篇文章讲的还好,设置状态栏颜色。但是还没具体研究,也没有给出iOS6下的设置方法,先放在此处日后在改进。
最后,关于对socket的学习进度,
在视屏通讯中的cmsamplebuffergetimagebuffer to nsdata 这方面知识很薄弱,需要继续努力。
有一个方法,待验证,
还有一个连接 http://stackoverflow.com/questions/6189409/how-to-get-bytes-from-cmsamplebufferref-to-send-over-network
2.关于设置状态栏颜色的方法,在iOS6 与 7中设置方法不同。有一篇文章讲的还好,设置状态栏颜色。但是还没具体研究,也没有给出iOS6下的设置方法,先放在此处日后在改进。
最后,关于对socket的学习进度,
在视屏通讯中的cmsamplebuffergetimagebuffer to nsdata 这方面知识很薄弱,需要继续努力。
有一个方法,待验证,
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//捕捉数据输出 要怎么处理虽你便
CVImageBufferRef imageBuffer = CMSampleBufferGetImageBuffer(sampleBuffer);
CVPixelBufferLockBaseAddress(imageBuffer,0);
if
(CVPixelBufferLockBaseAddress(imageBuffer, 0) == kCVReturnSuccess)
{
// void *bufferPtr = CVPixelBufferGetBaseAddress(imageBuffer);
UInt8 *bufferPtr = (UInt8 *)CVPixelBufferGetBaseAddressOfPlane(imageBuffer,0);
size_t buffeSize = CVPixelBufferGetDataSize(imageBuffer);
NSLog
(@
"%ld"
,buffeSize);
if
(
self
->mFirstFrame)
{
//第一次数据要求:宽高,类型
size_t bytesPerRow = CVPixelBufferGetBytesPerRow(imageBuffer);
size_t width = CVPixelBufferGetWidth(imageBuffer);
size_t height = CVPixelBufferGetHeight(imageBuffer);
NSNumber
*numberRow = [
NSNumber
numberWithInteger:bytesPerRow];
NSNumber
*numberWidth = [
NSNumber
numberWithInteger:width];
NSNumber
*numberHeight = [
NSNumber
numberWithInteger:height];
NSArray
*array = [
NSArray
arrayWithObjects:numberRow,numberWidth,numberHeight,
nil
];
if
(outDelegate) {
[outDelegate getVideoSizeInfo:array];
}
int
pixelFormat = CVPixelBufferGetPixelFormatType(imageBuffer);
switch
(pixelFormat) {
case
kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange:
//engine->srcFormat = VideoFormat_NV12;//PIX_FMT_NV12;
NSLog
(@
"Capture pixel format=NV12"
);
break
;
case
kCVPixelFormatType_422YpCbCr8:
//engine->srcFormat = VideoFormat_UYVY;//PIX_FMT_UYVY422;
NSLog
(@
"Capture pixel format=UYUY422"
);
break
;
default
:
//engine->srcFormat = VideoFormat_BGR32;//PIX_FMT_RGB32;
NSLog
(@
"Capture pixel format=RGB32"
);
}
mFirstFrame =
NO
;
}
//send data
//engine->SendVideoFrame((unsigned char*)bufferPtr,buffeSize);
if
(outDelegate){
[outDelegate videoDataOutputBuffer:(
char
*)bufferPtr dataSize:buffeSize];
}
还有一个连接 http://stackoverflow.com/questions/6189409/how-to-get-bytes-from-cmsamplebufferref-to-send-over-network
0 0
- 设置tableViewCell颜色
- 设置tableViewCell的背景颜色
- iOS设置tableViewCell的cell、textLabel和detailTextLabel背景颜色
- tableviewcell表视图cell选中时的颜色及背景设置,为什么无效?
- 设置xcode中模版tableViewCell的textLabel和detailTextLabel背景颜色
- 用willDisplayCell改变TableViewCell颜色
- 设置tableviewcell不让选中
- 设置tableviewcell不让选中
- 设置tableviewcell选中样式
- tableViewCell - 常见设置
- 设置tableViewCell之间的间距
- TableViewCell分割线的设置
- iOS设置tableViewCell不能点击
- tableviewCell 右侧剪头设置
- IOS 设置TableViewCell背景透明
- ios 设置tableViewcell中的图片大小
- 设置TableViewCell横线偏移量
- ios 改变tableviewcell 的选中颜色
- 我理解的逻辑地址、线性地址、物理地址和虚拟地址
- 软件开发中注意事项
- 重写Java Object对象的hashCode和equals方法实现集合元素按内容判重
- Android Studio(三)创建新项目
- 计算机学院研发第二轮考核-------浏览器之数据库篇(添加书签)
- 设置tableViewCell颜色
- windows系统cmd命令下可直接运行的功能
- URAL 1073 Square Country(DP)
- uploadify和greybox插件的使用
- Qt学习笔记——打开并显示图片
- hdoj2034 人见人爱A-B
- 怎么删除项目中的SVN信息?
- 线段树总结
- linux(ubuntu)文件夹和文件最大数量