![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ios 编程
xiaobo_duanfei
iOS网络摄像机系统
展开
-
Singleton 单例模式 -IOS开发
欢迎转载,但是请尊重作者劳动成果,转载请保留此框内声明,谢谢。文章出处:http://blog.csdn.net/iukeySingleton 单例模式,又叫单子模式,是一种常见的软件设计模式。这种模式的特点就是应用了 Singleton 单例模式的类必须保证始终只有一个实例(对象)存在。许多时候系统中需要某个类只能同时存在一个对象,而且可以全局调用。单例模式的思路是一个类转载 2013-06-09 16:42:10 · 375 阅读 · 0 评论 -
iOS 自动,手动 屏幕翻转
屏幕翻转方案:手动翻转:按钮触发:- (IBAction)totate:(id)sender { [[UIApplicationsharedApplication] setStatusBarOrientation:UIInterfaceOrientationLandscapeRight]; self.view.transform =CGAffin原创 2014-03-18 16:55:30 · 603 阅读 · 0 评论 -
UISwitch 调整大小
UISwitch *mySwitch = [UISwitch new]; mySwitch.transform = CGAffineTransformMakeScale(0.75, 0.75);原创 2013-09-22 15:47:23 · 1302 阅读 · 0 评论 -
iOS eXosip2 osip2 编译
./configure --prefix=/Users/user/Desktop/sipbuild/libs/ --host=arm-apple-darwin --enable-static=yes CC=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc CFLA原创 2013-09-04 14:33:34 · 1693 阅读 · 2 评论 -
libzip在iOS平台的使用
最近需要用到libzip,下载,编译,编译命令行如下:./configure CFLAGS="-arch i386"./configure --prefix=/usr/local/iphone --host=arm-apple-darwin --enable-static=yes --enable-shared=no CC=/Developer/Platforms/iPhone转载 2013-09-04 14:35:36 · 1108 阅读 · 0 评论 -
Linphone for iphone 编译
这两天 和一位网络好友 在做sip电话,他比较厉害 unix 命令知道的比较多英文也比较好 很早就编译完成了我通过聊天方式向他请教了编译linphone的过程http://www.linphone.org/eng/download/git.html linphone源码根据自己的需要下载git http://git-scm.com/ 安装git 之后在 终端 命令行转载 2013-09-03 16:24:00 · 1116 阅读 · 0 评论 -
OpenAL快速入门教程
OpenAL快速入门1. 为什么使用OpenAL也许你已经用过AudioToolbox框架并用以下代码来播放一个音乐文件:NSString* path = [[NSBundle mainBundle] pathForResource:@"soundEffect1" ofType:@"caf"];NSURL * afUrl = [NSURL fileURLWith转载 2013-08-29 16:11:12 · 2088 阅读 · 0 评论 -
编译IOS下的FFMpeg
参考了网络上的各种文档,博客,整理如下:1 环境 (1)机器上安装了xCode4.3.1和xCode4.5 (2)下载gas-preprocessor.pl:git:https://github.com/yuvi/gas-preprocessor (3)下载iFrameExtractor sample:git clone git://github.com/lajos/iFram转载 2013-08-29 15:04:13 · 769 阅读 · 0 评论 -
编译ffmpeg for iOS
1环境准备 1. 操作系统:Mac OS 10.82. Xcode版本:Xcode 4.4 3. 确保xcode的Command Line Tools已安装, Command Line Tools位于Xcode->Perference->Downloads目录下4. 确保git工作正常, 安装x转载 2013-08-29 14:11:15 · 765 阅读 · 0 评论 -
openal 笔记
下图展示了基本的OpenAL对象以及它们和上下文(context)、设备对象(device objects)之间的关系初始化OpenAL的时候,至少一个设备要被打开。在这个设备中至少会创建一个上下文(context),在这个上下文中必然有一个listener(听众),许多source(声源)对象也会被创建。每个source会有1到多个依附的buffer(缓冲器)对象。buffer对转载 2013-08-29 16:53:58 · 1390 阅读 · 0 评论 -
iOS之小心使用Storyboard
http://www.cnblogs.com/tekkaman/archive/2012/05/01/2478084.html1. Storyboard的优点。 a). 流程结构清晰 b). 有内置的segue支持 c). 方便的实例化ViewController 2. Storyboard的缺点。 a). 所有的ViewControll转载 2013-08-25 12:02:23 · 551 阅读 · 0 评论 -
iOS 设备类型判断
+ (NSString*)deviceString { // 需要#import "sys/utsname.h" struct utsname systemInfo; uname(&systemInfo); NSString *deviceString = [NSString stringWithCString:systemInfo.m转载 2013-08-12 11:11:21 · 537 阅读 · 0 评论 -
原iOS APP 完美适应 iPhone 6 和iPhone6 plus 屏幕尺寸解决方案
2014年9月19日,苹果公司发布了iphone 6和iPhone 6 plus ,作为中国的原创 2014-09-29 12:05:44 · 859 阅读 · 0 评论