该文件可以引入一些全局通用的文件,这样就不用每次在文件中导入,也可以定义全局通用的变量或常量,如//定义NSString常量#define ServiceName @"cn.zmfc"//定义颜色#define BackgroudColor [UIColor colorWithRe...
分类:
其他好文 时间:
2015-03-12 16:37:59
阅读次数:
81
IOS开发笔记(11)IOS开发之NSLog使用技巧
在xcode6.01以前是有prefix.pch文件的,Xcode6.01以后就没有了,但是可以自己去创建!
前提:在XCode做开发调试时往往需要打印一些调试信息做debug用,大家知道当打印信息的地方多了之后在模拟器上跑可能不会有什么问题,因为模拟器用的是电脑的硬件但是当应用跑在设备上时这些输出语句会在很大程度上影响应用...
分类:
移动开发 时间:
2015-03-11 09:19:12
阅读次数:
169
14.实现strStr():搜索一个字符串在另一个字符串中的第一次出现的位置
例:
#include
#include
int main ()
{
char str[] ="This is a simple string";
char * pch;
pch = strstr (str,"simple");
cout<<(*pch)<<endl;
return 0;
}...
分类:
编程语言 时间:
2015-03-10 10:26:24
阅读次数:
186
XCode中创建pch文件,pch文件的作用: 在pch文件中添加的头文件,在工程其他文件中无需重复频繁的添加...
分类:
其他好文 时间:
2015-03-09 14:29:20
阅读次数:
109
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文件
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
xcode6不能默认创建pch,但我们可以手动创建啊.Duang~~
1.新建工程
2.创建pch文件
3.在setting里面设置...
分类:
其他好文 时间:
2015-03-03 11:46:05
阅读次数:
146
All the CoreData header files are imported inApp_Prefix.pch, so the CoreData classes will be available throughout your Project, so you don't have to m...
分类:
其他好文 时间:
2015-02-27 11:23:35
阅读次数:
4404