上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 36 下一页
摘要: iOS 控制单个控制器旋转控制单个ViewController 的旋转//不旋转,保持竖屏//iOS 5- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation{ ... 阅读全文
posted @ 2015-09-22 10:27 cocoajin 阅读(735) 评论(0) 推荐(0)
摘要: 在UIViewController中收起键盘,除了调用相应控件的resignFirstResponder方法外,还有另外三种方法:1.重载UIViewController中的touchesBegin方法,然后在里面执行[self.view endEditing:Yes];这样单击UIViewCont... 阅读全文
posted @ 2015-08-24 16:00 cocoajin 阅读(214) 评论(0) 推荐(0)
摘要: xcode ___gxx_personality_v0" 编译错误Undefined symbols for architecture i386:"___gxx_personality_v0", referenced from:...在XCODE工程 添加 libstdc++.dylib 即可 阅读全文
posted @ 2015-08-20 11:54 cocoajin 阅读(3705) 评论(0) 推荐(0)
摘要: xcode集成了非常方便的测试框架,XCTest在xcode6之后,提供了利用此我们可以直接在XCTest里面测试一些异步的任务,比如异步网络请求如下示例- (void)testExample { XCTestExpectation *exception = [self expecta... 阅读全文
posted @ 2015-07-27 10:18 cocoajin 阅读(337) 评论(0) 推荐(0)
摘要: xcode6 framework missing submodule xxx 警告从xcode6开始,iOS可以直接创建生成framework了如:创建 framework 项目,TFKit.framework则 会自动生成TFKit.h然后我们再添加一些自已的类,并对外提供 TFA.h,TFB.h... 阅读全文
posted @ 2015-07-14 14:53 cocoajin 阅读(3857) 评论(0) 推荐(0)
摘要: iOS AVCaptureVideoDataOutputSampleBufferDelegate 录制视频应用场景: 使用AVFoundation提供的API, 我们可以从AVCaptureVideoDataOutputSampleBufferDelegate 代理中实时的获取摄像头的视频流,通过解... 阅读全文
posted @ 2015-06-08 17:06 cocoajin 阅读(4136) 评论(0) 推荐(0)
摘要: iOS AVAudioRecorder 录音频率、声道、位数配置#pragma mark 录音设置- (void)setUP_VOICE_RECOARDER{ NSError *error = nil; audioSection = [AVAudioSession sharedInsta... 阅读全文
posted @ 2015-05-24 15:35 cocoajin 阅读(5646) 评论(1) 推荐(0)
摘要: 阅读此书的笔记点;此书目录即是对知识点最好的总结第1章 熟悉Objective-C----------------------------------------------第1条:了解Objective-C语言的起源第2条:在类的头文件中尽量少引入其他头文件第3条:多用字面量语法,少用与之等价的方... 阅读全文
posted @ 2015-04-17 10:25 cocoajin 阅读(758) 评论(0) 推荐(0)
摘要: 一:RTMPRTMP流媒体协议是 一套 Adobe 开发的音频视频实时传输协议;二:Nginx-rtmpnginx-rtmp 是一个基于nginx的 RTMP服务模块,开源,免费https://github.com/arut/nginx-rtmp-module三:在 ubuntu server 14... 阅读全文
posted @ 2015-03-20 15:35 cocoajin 阅读(16501) 评论(0) 推荐(1)
摘要: img src 使用 base64 图片数据在网页上显示一张图片通常是 或 但是如果我们有图片base64数据;也可以使用 base64数据来在网页上显示一张图片;格式:上面一个是 注意 图片格式: image/bmp, 这里可以使用主流的图片格式jpg,png等后面的 Qk32 为该图片的 ba... 阅读全文
posted @ 2015-03-11 15:51 cocoajin 阅读(7287) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 36 下一页