上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: 在所有的预处理指令中,#Pragma 指令可能是最复杂的了,它的作用是设定编译器的状态或者是指示编译器完成一些特定的动作。#pragma指令对每个编译器给出了一个方法,在保持与C和C++语言完全兼容的情况下,给出主机或操作系统专有的特征。依据定义,编译指示是机器或操作系统专有的,且对于每个编译器都是... 阅读全文
posted @ 2014-08-27 16:26 太阳☆月亮 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 调试常用的 __FILE__, __FUNCTION__, __LINE__调试常用的 __FILE__, __FUNCTION__, __LINE__没想到 VC6 不支持 __FUNCTION__所以我写了如下的奇怪代码//用来记录当前行和当前函数//也可说是记录 堆栈void log_stac... 阅读全文
posted @ 2014-08-27 16:23 太阳☆月亮 阅读(2546) 评论(0) 推荐(1) 编辑
摘要: 在ios开发时,我们经常会遇到对同一个app开发多个版本(Pro、Lite、Free)的情况,这里就涉及到xcode里通过添加多个targets来进行版本控制的问题了,下面就简单说明一下: 点击左侧的工程名称,右侧会出现PROJECT和TARGETS,点击你现在的target,假如叫A,右键弹出菜... 阅读全文
posted @ 2014-08-26 18:40 太阳☆月亮 阅读(327) 评论(0) 推荐(0) 编辑
摘要: [cpp]view plaincopy1.系统默认的颜色设置[cpp]view plaincopy//无色cell.selectionStyle=UITableViewCellSelectionStyleNone;//蓝色cell.selectionStyle=UITableViewCellSele... 阅读全文
posted @ 2014-08-26 18:39 太阳☆月亮 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 需要迁移一个开源工程的一部分内容到自己工程,迁移对方的工程到自己工程之后,因目录结构配置整理需要,对嵌入的工程目录进行了结构改变,编译后出现:clang: error: no such file or directory:'/Users/username/Desktop/echonest-echop... 阅读全文
posted @ 2014-08-26 11:05 太阳☆月亮 阅读(624) 评论(0) 推荐(0) 编辑
摘要: 从sdk3.2.5升级到sdk 5.1中间废弃了很多的方法,还有一些逻辑关系更加严谨了。1,警告:“xoxoxoxo” is deprecated解决办法:查看xoxoxoxo的这个方法的文档,替换掉这个方法即可。2,警告:Declaration of "struct sockaddr" will ... 阅读全文
posted @ 2014-08-26 11:03 太阳☆月亮 阅读(1268) 评论(0) 推荐(0) 编辑
摘要: 1、初始化UIPopoverController UIPopoverController*popover = [[UIPopoverControlleralloc]initWithContentViewController:navigationController]; //必须是个ViewCont... 阅读全文
posted @ 2014-08-25 15:56 太阳☆月亮 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 1,ios6屏幕旋转,所有被push出来的controller的旋转属性都由root controller中以下函数- (NSInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskAll;}- (BOOL)... 阅读全文
posted @ 2014-08-15 17:54 太阳☆月亮 阅读(176) 评论(0) 推荐(0) 编辑
摘要: x轴缩放:CABasicAnimation *theAnimation;theAnimation=[CABasicAnimation animationWithKeyPath:@"transform.scale.x"];theAnimation.duration=8;theAnimation.rem... 阅读全文
posted @ 2014-08-15 16:16 太阳☆月亮 阅读(1706) 评论(0) 推荐(0) 编辑
摘要: ShortcutEnglishComputerese↩new lineinsertNewline:⌥↩new line (don't leave form box)1insertNewlineIgnoringFieldEditor:⌅new lineinsertNewline:⌥⌅new line ... 阅读全文
posted @ 2014-08-15 13:50 太阳☆月亮 阅读(421) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页