自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(41)
  • 资源 (3)
  • 收藏
  • 关注

转载 编程语言中的位操作

登录 | 注册MoreWindows Blog - 微软最有价值专家的个人技术博客心有多大,舞台就有多大。目录视图摘要视图订阅2014年7月微软MVP申请开始了    “我的IT成长路”活动中奖名单公布    【社区问答】柳峰 基于Java的微信公众平台开发位

2014-04-10 09:49:55 1475

原创 two type of parsing date on iPhone

Parse date information by NSCalendar, NSTimeZone, and NSDateComponents:NSDate *now = [NSDate date]; // 1NSCalendar *calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGr

2012-07-03 19:50:22 351

原创 Objective-c Property define

属性的定义(property)@property (copy, nonatomic) NSString *title;什么是assign,copy,retain之间的区别?assign: 简单赋值,不更改索引计数(Reference Counting)。copy: 建立一个索引计数为1的对象,然后释放旧对象retain:释放旧的对象,将旧对象

2012-03-24 11:00:52 423

原创 Delete app on iTune connect

Click "Rights and Pricing"Go to the sale territories section. There is a link near the endClick on the "Deselect all" button to uncheck all App Store territories.Click on the "Save Changes" butt

2012-03-18 13:51:57 386

原创 UIViewController (popover view controller)

UIViewController1. You should not use multiple custom view controllers to manage different portions of   the same view hierachy. Similary, you should not use a single custome view controller

2011-12-13 13:16:49 763

原创 Quartz 2D 合并图像

- (void)Combine{CGContextRef Context = UIGraphicsGetCurrentContext(); CGContextSaveGState(Context);CGContextScaleCTM(Context, 1.0,-1.0);CGContextTranslateCTM(Context, 0,-self.fram

2011-12-02 16:47:45 300

原创 iPhone Network 编程

1. IPhone目前提供可以检查配置状态,比如    网络连接状态    Wi-Fi可使用状态   cell service可使用状态但是没有API可用于检测 "蓝牙连接" 状态 或者检测用户是否在漫游(roaming)状态2. 检测IP是否可以reachable    SCNetworkReachabilityCreateWithAddress-(BOO

2011-11-25 14:02:19 1079

原创 MFC 基础3 (GDI)

6.1 设备环境类CMetalFileDC,CWindowDC, CClientDC; CPaintDC当创建一个CDC对象后,重要的一点就是在合适的时候将其销毁,Windows限制了可用设备环境的数目, 如果没有成功释放,程序在退出的时候,将有小部分内存泄漏。一般情况下,我们会在消息处理函数中创建CDC对象,如下在stack中构建对象CRect rect;

2011-11-25 10:48:59 506

原创 MFC Diary - Visual C++ 基础框架2

1. Windows 消息映射MFC 中一On 打头的成员函数(比如OnKeyDown,OnLButtonUp 等等)都是应用程序框架响应的各种Windows事件 是需要调用的函数,而且在Windows框架中这些函数大多数都不是虚函数(如OnKeyDown),因此需要话费更多的精力编程。MFC 的消息映射体系:当用户在视图窗口中按下鼠标左键时,Windows会自动发送WM_LBUT

2011-11-25 09:45:18 574

原创 MFC Diary - Visual C++ 基础框架1

1。 扩展名-APS:支持资源试图 (Resource View)-BSC: 浏览器信息文件-IDL:接口定义语言文件-NCB:支持Class View-SLN:方案文件 *-SUO:包括方案中的可选项和配置信息-VCPROJ:项目文件 *(*文件不能删除,而且不能在文本编辑器中编辑)2. C++标准模板库 (STL, Standard Templa

2011-11-21 11:01:40 325

原创 Resoution for Failing To Agree With New iPhone Agreement

Open following website like, which is embeded web page for “https://developer.apple.com/membercenter/index.action#updateAgreement”:https://developer.apple.com/membercenter/mcUpdateAgreement.action

2011-11-19 21:35:49 541

原创 C# 数据转换专题

1. byte[] To char[]byte[] byt = new byte[5]{0x01,0x02,0x03,0x04,0x05};char[] = Encoding.ASCII.GetChars(byt)2. char[] To byte[]char[] charr = new char[5]{'a','b','c','d','e'};byte[] barr

2011-11-16 15:49:53 233

原创 iOS内存 管理 一点

UIViewController中引入了一个新方法,viewDidUnload: 当拥有多个视图是,iPhone OS将加载和卸载nib文件,以保留内存。当视图被卸载时,在控制器内中具有相应输出口的任何对象都无法从内存中擦除,因为你已经通过在输出口的属性中指定retain关键字来保留了该对象。因此,当控制器获知其视图已被卸载时,一定要将控制器的所有输入出口属性设置为nil,以便释放内存。当重新

2011-11-01 21:16:31 343

原创 Quartz Coordinate System

The default coordinate for Quartz 2D is:Lower - LeftIn iOS, UIView have changed the coordinate to Upper - Left.(The reason UIKit ret

2011-09-05 11:11:32 345

原创 integrate PhysicsEdit into cocos2d

1. PhysicsEdit will export with *.plist2. Add plist and image into Box2D with following code:CCSprite *sprite = [CCSprite spriteWithFile

2011-08-09 16:09:36 468

原创 how to determine if an iOS device has a cellular radio

if([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"tel:+11111"]])<br />  // device has phone capabilities<br />

2011-02-14 12:24:00 899

原创 how to determine if an iOS device has a cellular radio

if([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"tel:+11111"]])<br />  // device has phone capabilities<br />

2011-02-14 12:14:00 652

原创 Turning Off Screen Locking

<br />UIApplication *app = [UIApplication sharedApplication];<br />app.idleTimerEnabled = YES;<br /> 

2011-02-14 12:08:00 313

原创 iPhone with File I/O Functions

<br />1. NSHomeDirectory() return the home directory of your application<br />2. NSTemporaryDirectory() return the temp directory of your application<br />3. Get document directory:<br />    NSArray *arrayPaths = NSSearchPathForDirectorysInDomains(NSDocume

2011-02-14 11:56:00 421

原创 Setting a Button’s Image

A button can have two images associated with it: normal and alternate. If the button type is NSMomentaryPushInButton, NSPushOnPushOffButton, NSMomentaryLightButton, or NSOnOffButton, only the normal image is ever displayed. If the button type is NS

2011-02-14 10:50:00 1124

原创 NSDateFormatter的格式字符串

<br />     NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];      [dateFormatter setDateStyle:NSDateFormatterMediumStyle];      [dateFormatter setTimeStyle:NSDateFormatterShortStyle];      //[dateFormatter setDateFormat:@"hh:mm:ss"]      [da

2011-02-11 14:58:00 533

原创 Send message to twitter

<br />http://www.slideshare.net/ryan/iphone-app-howtosend-message-to-twitter

2011-02-11 12:57:00 343

原创 iPad软件提交注意事项

iPad软件提交注意事项<br />时间: 2010-03-26 11:09 点击:3848 次 这是CocoaChina会员 stlau根据自己的iPad软件提交经验总结的注意事项,希望大家留意一下,避免软件被苹果审核人员拒绝放行。 帖子地址 http://www.cocoachina.com/bbs/read.php?tid-17119.html 肯定会被 这是CocoaChina

2011-02-11 10:44:00 305

原创 集合 - 1

Cocoa 中的集合有NSArray(NSMutableArray), NSSet (NSMutableSet, NSCountedSet), NSDictionary (NSMutableDictionary)NSArray-(unsigned) count-(id) objectAtIndex:(unsigned) index-(BOOL) containsObject:(id) anObjectNSMutableArray-(void) addObject:(id) anObject-(void) i

2011-02-06 19:30:00 274

原创 gdb 调试-1

<br /> <br />(gdb) call [exp] 调用给定的对象功能<br />(gdb) print [exp] 输出给定表达式的原始值<br />(gdb) print-object [exp] 输出表达式返回的对象值<br />(gdb) set [variable] = [exp] 将表达式的值赋给变量<br />(gdb) whatis [variable] 输出变量的类型<br />(gdb) help 输出调试器的命令列表

2011-02-06 19:13:00 272

原创 How to use NSString and NSMutableString

NSString 基本操作:>> -(int) length>> -(const char*) cString>> -(const char*) UTF8String 以UTF-8形式返回字符串,Mac OS X所有的底层系统都能处理以UTF-8编码的char *>> -(NSString *) stringByAppendingString:(NSString *) aString构建并调试(Build and debug)     #-Y 处理字符串的字串-(NSRange) rangeOfString

2011-02-06 18:40:00 331

原创 NSTimer

<br />NSTimer 可以精确控制50 - 100ms 的时间,如何Timer 处理函数比较耗时,真实的间隔时间可以比预设时间长,core function framework 也提供相似的对象, CFRunLoopTimerRef, 而且CFRunLoopTimerRef 可以 和NSTimer 相互替换<br /> <br />NSTimer class<br />Creating Timer<br />1. scheduledTimerWithTimeInterval:invocation:re

2011-01-28 09:18:00 2566

原创 Apple application

性能工具<br />下面这些应用程序用于软件性能的测量和分析。它们位于/Developer/Applications目录下。<br /> <br />Sampler 用于分析程序运行时的行为和内存分配。顾名思义,Sampler会按一定的时间周期对程序的函数调用栈进行采样,并在采样结束时向您显示调用频率最高的函数或方法。这种信息有助于定位消耗大量CPU时间或进行内存分配的函数或方法。<br />ObjectAlloc 用于跟踪各种程序的内存分配与释放行为。这种历史数据可以显示重复的内存分配

2011-01-10 12:48:00 549

原创 Disable NSLog in apple development

<br />#ifndef __OPTIMIZE__<br /># define NSLog(…) NSLog(__VA_ARGS__)<br />#else<br /># define NSLog(…) {}<br />#endif

2011-01-10 11:34:00 291

原创 Disable NSLog in apple development

<br />#ifndef __OPTIMIZE__<br /># define NSLog(…) NSLog(__VA_ARGS__)<br />#else<br /># define NSLog(…) {}<br />#endif

2011-01-10 11:34:00 339

原创 C# 预处理指令

<br />#define #undef<br /> <br />#if #elif #else #endif<br /> <br />#warning #error<br /> <br />#region #endregion<br /> <br />#line<br /> <br />#pragma

2010-09-27 17:28:00 268

原创 C# 中的byte and sbyte

<br />byte: 8位无符号的整数<br />sbyte: 8位有符号的整数<br /> <br />int: 32位有符号整数<br />uint: 32位无符号的整数<br /> <br />short: 16位有符号整数<br />ushort: 16位无符号整数<br /> <br />long: 64位有符号整数<br />ulong: 64位无符号整数

2010-09-27 16:24:00 1281

原创 c# knowledge

<br />C# 中常量总是静态的,不允许在常量声明中包含static

2010-09-27 16:19:00 215

原创 测试Linux网卡是否正常工作

手动设置 #ifconfig etn0 192.168.1.2,设置网卡IP地址或直接运行ifconfig,这时候要注意了,在网络接口中有一个lo接口,也就是网络回环(loopback).再使用ping命令#ping 192.168.1.2 -c 3测试3次,看能否正常响应. 启动与关闭网卡/etc/rc.d/init.d/network r

2009-12-20 13:55:00 966

原创 Big Endian and Little Endian

Big-Endian 和 Little-Endian 字节排序字节排序含义Big-Endian一个Word中的高位的Byte放在内存中这个Word区域的低地址处。Little-Endian一个Word中的低位的Byte放在内存中这个Word区域的低地址处。必须注意的是:表中一个Wor

2009-12-19 12:03:00 233

原创 English Articles-I

Today is Nov.14 2007, and from the beginning of today, I decide to improve my english ability.For me, there are two capabilities which some day can hold back my career expanding, one is the english

2007-11-14 08:49:00 339

原创 STL标准模板库

STL标准模板库zg711 转自exam100.com  STL(Standard Template Library),即标准模板库,是一个具有工业强度的,高效的C++程序库。它被容纳于C++标准程序库(C++ Standard Library)中,是ANSI/ISO C++标准中最新的也是极具革命性的一部分。该库包含了诸多在计算机科学领域里所常用的基本数据结构和基本算法。为广大C++程序员们

2007-07-31 08:54:00 576

原创 LINUX操作系统的概念和特点

嵌入式LINUX操作系统的概念  以应用为中心,以计算机技术为基础,软件、硬件可裁剪,适应应用系统对功能、可靠性、成本、体积、功耗要求严格的专用计算机系统,称为嵌入式系统。一个最小的嵌入式系统的基本组成为:① 一个用作引导的可用设施(工具);② 一个具备内存管理,进程管理和定时器服务的LINUX微内核;③ 一个初始进程;④ 硬件的驱动程序;⑤ 一个或几个应用进程以提供必要的应用功效。嵌入式LINU

2007-07-31 08:51:00 1492

原创 Debug和Release之本质区别

Debug 和 Release 编译方式的本质区别    Debug 通常称为调试版本,它包含调试信息,并且不作任何优化,便于程序员调试程序。Release 称为发布版本,它往往是进行了各种优化,使得程序在代码大小和运行速度上都是最优的,以便用户很好地使用。    Debug 和 Release 的真正秘密,在于一组编译选项。下面列出了分别针对二者的选项(当然除此之外还有其他一些,如/Fd /Fo

2007-06-07 08:37:00 472

原创 2007年5月9日(周三)

C++ 容器类:1。Vector2。BitSet3。deque4. list5. queue6. priority_queue7. stack8. pair9. map10. multimap11. set12. multisetetc

2007-05-09 11:43:00 442

嵌入式系统--体系结构.编程与设计 .pdf

嵌入式系统--体系结构.编程与设计, 适合嵌入软件开发实现了解。

2014-11-15

文档ISO5 Cookbook

适用于iPhone软件开发参考。 iOS5 相关的技术参考。

2012-11-01

WinCHM Crack Version

HML helper file tool

2007-04-30

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除