- 博客(10)
- 资源 (8)
- 收藏
- 关注
原创 Git创建局域网仓库
项目名称:GitTest1、mkdir GitTest2、cdGitTest3、mkdir GitTest.git4、mkdir project5、cd GitTest.git6、git init --bare7、设置GitTest文件共享8、cd ../project9、git init10、touch README11、git add .12、git commit -m "add README"13、git remote add origin //{.
2020-07-11 10:11:23 375
转载 Paths
Paths中的几个重要元素Pointsvoid CGContextMoveToPoint ( CGContextRef c, CGFloat x, CGFloat y);指定一个点成为current pointQuartz会跟踪current point一般执行完一个相关函数后,current point都会相应的改变.Lines相关的几个函
2012-08-13 09:58:52 497
转载 iOS 简单实现gif动画播放
本次实现gif动画播放是通过将动画文件读取到CGImageSourceRef,然后用NSTimer来播放的。代码如下:首先是头文件#import #import #import @interface GifView : UIView {CGImageSourceRef gif; // 保存gif动画NSDictionary *gifProperties; // 保存gif动
2012-08-06 17:18:44 3131 1
原创 Reachability类检测网络状态
1、注册通知[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(reachabilityIsChanged:) name:kReachabilityChangedNotification object:nil];2、创建Reachability实例对象并开启通知
2012-08-06 16:31:43 4837
转载 iOS4中Core Motion框架的介绍和使用
iOS4中Core Motion框架的介绍和使用作为一个刚学习iPhone编程一周的人来说,其实写这篇文章的目的不是传道授业解惑,而是为了知识的总结。如果能吸引到各位为我传道授业解惑那再好不过了。文章基本的内容,整个流程是参照WWDC 2010上的session 423: Sensing Device Motion in iOS4写的,同时参考了开发文档Event Handling G
2012-08-06 15:05:06 4209
原创 iOS日历
1、计算当前周的第一天:NSDate *today = [NSDate date];NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar]; // Get the weekday component of the current dateN
2012-08-06 10:00:14 645
原创 分析IOS CrashLog的方法
Xcode提供的Orgainzer分析器加上symbolicatecrash,可以分析二进制文件以及源代码和crashlog之间的连接,直接找出源程序中出错的代码行。symbolicatecrash所在路径:/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.frame
2012-08-03 10:14:58 2275
转载 iOS多张图片合成一个视频文件
转自:http://blog.iosxcode4.com/archives/160用到的FrameWork有:MediaPlayer.framework,QuartzCore.framework,CoreVideoframework,CoreMedia.framework,AVFoundation.framework代码如下:- (CVPixelBuff
2012-05-24 10:53:34 11896 3
原创 ios开发------程序中添加僵尸进程
(1)工程“Executables”(2)"Arguments"(3)"Variables to be set in the environment"(4)添加两个参数:MallocStackLogging-------------YESNSZombieEnabled----------------YES(5)终端命令“shell mal
2012-02-27 14:34:03 1394
原创 程序后台保活-接收网络数据
- (void)createSocket { socketClient = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); NSLog(@"socketClient-------%d", socketClient); if (socketClient >= 0) { CFReadStreamRef readStr
2012-02-01 14:45:59 1534
ASIHttpDemo
2011-05-16
CC2430芯片数据手册(中英文对照)
2011-04-02
linux_at命令使用案例
2011-04-02
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人