码迷,mamicode.com
首页 >  
搜索关键字:pch nslog    ( 1866个结果
PrefixHeader.pch 在工程中的使用
PrefixHeader.pch 在工程中的使用
分类:其他好文   时间:2015-03-06 14:03:40    阅读次数:124
Xcode内存管理总览
#import int main(int argc,const char *argv[]){ NSAutoreleasePool *pool =[[NSAutoreleasePool alloc] init]; NSLog("Hello,World!"); [pool drain]...
分类:其他好文   时间:2015-03-05 22:19:11    阅读次数:156
iOS 三种打电话方式
//1,这种方法,拨打完电话回不到原来的应用,会停留在通讯录里,而且是直接拨打,不弹出提示NSMutableString * str=[[NSMutableString alloc] initWithFormat:@"tel:%@",@"000000000"]; // NSLog(@"s...
分类:移动开发   时间:2015-03-05 14:22:05    阅读次数:114
ios开发笔记之手势触控
- (void)handleLongPress:(UILongPressGestureRecognizer*)sender { if (sender.state == UIGestureRecognizerStateEnded) { NSLog(@"Long press Ended"); } else { NSLog(@"Long pres...
分类:移动开发   时间:2015-03-04 19:07:10    阅读次数:138
iOS获取当前路由信息
导入头文件:#import - (void)currentWifiSSID { // Does not work on the simulator. NSArray *ifs = (__bridge id)CNCopySupportedInterfaces(); NSLog(@"ifs:%@",if...
分类:移动开发   时间:2015-03-04 18:57:17    阅读次数:143
运行时runtime
1.在object-c运行时替换私有类的方法runtime完全解读2.运行时给一个对象增加方法//C方法形式定义被增加的方法void helloLog(id self, SEL _cmd){ NSLog(@"helloLog");}//OC方法形式定义被增加方法- (void)helloLog{ ....
分类:其他好文   时间:2015-03-04 18:56:17    阅读次数:111
NSlog输出格式符
ios学习笔记
分类:其他好文   时间:2015-03-04 18:44:33    阅读次数:129
十六进制内存赋值
char* pCh = "0xe6, 0x97, 0xa0, 0xe7, 0x95, 0x8c, 0xe6, 0xb5, 0x8f, 0xe8, 0xa7, 0x88";字符串的形式存在于内存中,达不到预期下面两种均可:unsigned char title[] = {0xe6, 0x97, 0xa...
分类:其他好文   时间:2015-03-04 16:26:40    阅读次数:118
Xcode6中如何添加pch文件
Xcode6中如何添加pch文件 1.在已有的工程里面创建pch文件,Commond+N——>iOS——>Other——>PCH File 2.更改配置,Targets—>Build Settings->Precompile Prefix Header 改成yes Targets—>Build Settings->Prefix Header 后面添加路径如: $(SRCROOT)/Viode...
分类:其他好文   时间:2015-03-03 20:48:25    阅读次数:170
IOS之获取设备的信息
NSLog(@"globallyUniqueString=%@",[[NSProcessInfoprocessInfo]globallyUniqueString]);//全球唯一标识NSLog(@"uniqueIdentifie=%@",[UIDevicecurrentDevice].uniqueI...
分类:移动开发   时间:2015-03-03 17:57:55    阅读次数:132
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!