1.xcode编译项目缓存路径:
~/Library/Developer/Xcode/DerivedData/'ProjectName-'+'randomcharacters'/Build/
2.iphone开发 地图线路
参考文章:http://hi.baidu.com/yunhuaikong/blog/item/02718e4fa46878d0d0c86a6b.html
3.代码添加UITab bar的图片文字
NSInteger index = 0; while(index < 4){ // 4 is the number of tabbar items UINavigationController *navCtrlr = (UINavigationController*)[[tabBarController viewControllers] objectAtIndex:index]; UITabBarItem *tabBar = (UITabBarItem *) navCtrlr.tabBarItem; if(index == 0){ tabBar.image = [UIImage imageNamed:@"home-item.png"]; tabBar.title = @"home"; } ... index ++; }
4.用代码向已有的UIViewController中添加UINavigationController
5.多个字符串连接
NSString* string; // 结果字符串
NSString* string1, string2; //已存在的字符串
1.string=[NSStringinitWithFormat:@"%@,%@",string1,string2];
2.string=[string1stringByAppendingString:string2];
3.string=[stringstringByAppendingFormat:@"%@,%@",string1,string2];
这三种方法都会将string1和string2 合并,但是第二个方法更有效率
6.向iphone模拟器相册里添加图片方法:
从电脑里直接向模拟器拖一张图片,左键长按,保存即可
本文详细介绍了Xcode编译项目缓存路径的查找方法,并提供了在iOS开发中如何添加UITabbar图片文字、向UIViewController中添加UINavigationController的方法,以及如何在代码中进行字符串连接与向iPhone模拟器相册添加图片的操作。

1563

被折叠的 条评论
为什么被折叠?



