1.将OC的数组转化成OC格式的字符串NSArray*arr=@[@"aa",@"bb",@"cc"];2.转化NSString*jsonStr=[arrJSONString];NSLog(@"%@",jsonStr);
分类:
Web程序 时间:
2014-09-15 03:26:58
阅读次数:
233
Person*p = [[Personalloc]init];// 指针变量的地址NSLog(@"%p", &p);// 对象的地址NSLog(@"%p", p);// NSLog(@"%@", p);2、NSLog(@“%s\n”,_func_);输出当前函数名3、NSLog(@“%d”,_LI....
分类:
其他好文 时间:
2014-09-14 23:29:27
阅读次数:
275
1.略2.#import int main(int argc, const char * argv[]){ @autoreleasepool { // insert code here... NSLog(@"In Obiective-c, lowerc...
分类:
其他好文 时间:
2014-09-13 19:58:45
阅读次数:
318
//DLog代替NSLog//debugMethod() 代替 NSLog(@"%s", __func__)//DLog在release下不会输出#ifdef DEBUG# define DLog(fmt, ...) NSLog((@"[文件名:%s]\n" "[函数名:%s]\n" "[行号:%d...
分类:
移动开发 时间:
2014-09-12 14:52:03
阅读次数:
194
1 //1、 2 NSString *postURL = [NSString stringWithFormat:@"http://xxxxxx.php?model=%@&data=%@", myModel, myAllData]; 3 NSLog(@"发送注册请求URL:%@", postURL)....
分类:
移动开发 时间:
2014-09-07 22:24:45
阅读次数:
235
程序在编译后,在目标路径下会生成多个文件Debug文件夹(*.exe,*.ilk,*.obj,*.pch,*.pdb,*.idb,*,pdb),*.cpp,*.dsp,*.ncb,*.plg*.exe:是生成的可执行文件*.ilk:当选定渐增型编译连接时,连接器自动生成ILK文件,记录连接信息*.o...
分类:
编程语言 时间:
2014-09-05 12:46:01
阅读次数:
212
///////当应用程序接在完成时触发-(BOOL)application:(UIApplication*)applicationdidFinishLaunchingWithOptions:(NSDictionary*)launchOptions{NSLog(@"%s",__FUNCTION__);self.window=[[UIWindowalloc]initWithFrame:[[UIScreenmainScreen]bounds]];//Overridepointforcusto..
分类:
其他好文 时间:
2014-09-05 03:20:41
阅读次数:
269
NSMutableString *ms = [[NSMutableString alloc] initWithString:@"我是中国人"];
if (CFStringTransform((__bridge CFMutableStringRef)ms, 0, kCFStringTransformMandarinLatin, NO)) {
NSLog(@"P...
分类:
移动开发 时间:
2014-09-04 20:59:20
阅读次数:
205
-(void)dirHome{
NSString *dirHome=NSHomeDirectory();
NSLog(@"app_home: %@",dirHome);
}
iOS的沙盒机制,应用只能访问自己应用目录下的文件。iOS 不像android,没有SD卡的概念,不能直接访问图像、视频等内容。iOS应用产生的内容,如图像、文件、缓存内容等都必须存储在自己的沙盒内。...
分类:
移动开发 时间:
2014-09-01 14:02:33
阅读次数:
177
在协同开发的时候,刚刚从svn下载到本地的代码,出现“fatal error: file 'XX-Prefix.pch' has been modified since the precompiled header was built”的问题,这个其实不是什么问题,解决方案如下:1、找到 XX-P....
分类:
移动开发 时间:
2014-08-31 21:12:31
阅读次数:
227