2012年6月12日
摘要: 今天大早就收到苹果的邮件 Start developing for iOS 6 today.Get your apps ready for iOS 6. Download the SDK and start exploring Maps, Facebook integration, Passbook, Reminders, new features for In-App Purchase and Game Center, new camera APIs, and so much more. iOS 6 beta and Xcode 4.5 Developer Preview with iO.. 阅读全文
posted @ 2012-06-12 10:42 心不蒙尘 阅读(1579) 评论(1) 推荐(1) 编辑
  2012年3月26日
摘要: 最近在整合一些与服务器交互的东西,准备使用序列化的一些东西使用NSCoding 来进行NSObject 的序列化实现: 整合了网上搜集的两片文章完成了功能:http://www.cnblogs.com/likwo/archive/2011/05/26/2058134.html-(void)encodeWithCoder:(NSCoder*)coder{Classclazz=[selfclass];u_intcount;objc_property_t*properties=class_copyPropertyList(clazz,&count);NSMutableArray*proper 阅读全文
posted @ 2012-03-26 18:04 心不蒙尘 阅读(2236) 评论(0) 推荐(0) 编辑
  2012年3月21日
摘要: 最近做个项目,开始采用的是HTTP协议实现客户端和服务器端的交互,后来需要改成HTTPS协议。在修改的过程中发现了一些问题,解决方案如下:HTTP: NSString *urlString =[NSString stringWithFormat:@"https://127.0.0.1/default.aspx?USER=%@",@"111"]; NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease]; [request setURL:[NSURL UR 阅读全文
posted @ 2012-03-21 14:42 心不蒙尘 阅读(39932) 评论(5) 推荐(0) 编辑
  2012年3月9日
摘要: 在进行实际代码开发的过程中,我们会生成一些plist文件,但是如何在调试过程中查看这些plist文件是否被成功生成以及生成的内容是否正确?如果查看模拟器生成的日志和真机生成的日志到底如何查看?DEMO首先生成一个plist文件NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectroy = [paths objectAtIndex:0];NSString *filename =@"1.plist 阅读全文
posted @ 2012-03-09 15:34 心不蒙尘 阅读(17944) 评论(0) 推荐(1) 编辑
  2012年3月5日
摘要: 原文地址:http://www.cocoachina.com/bbs/read.php?tid=84629 UIView *myView = [[UIView alloc] initWithFrame:CGRectZero];CGRect rect = myView.frame;rect.size = CGSizeMake(100.0, 100.0);myView.frame = rect;myView.center = mainScroller.center;myView.layer.borderColor = [UIColor whiteColor].CGColor;myView.al.. 阅读全文
posted @ 2012-03-05 17:08 心不蒙尘 阅读(3226) 评论(0) 推荐(0) 编辑
  2012年3月2日
摘要: 在往设备上烧制程序的时候,遇到“InstallProhibited” received from device异常,在网上搜了半天,也没有解决,网上搜到的信息最全的就是如下的:http://stackoverflow.com/questions/3345974/installprohibited-received-from-device内容拷贝如下:问:I recently updated my iPhone to iOS 4.0.1 and I cannot use the device for development any more. I have the following error 阅读全文
posted @ 2012-03-02 13:27 心不蒙尘 阅读(2295) 评论(0) 推荐(1) 编辑
  2012年2月27日
摘要: 原文地址:http://www.cnblogs.com/anmog/archive/2011/03/09/1978621.html NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init]; NSUserDefaults *defs = [NSUserDefaults standardUserDefaults]; NSLog(@"Load currentCookie:%@", cookie); [request setValue:cookie forHTTPHeaderField:@"C.. 阅读全文
posted @ 2012-02-27 17:03 心不蒙尘 阅读(7641) 评论(0) 推荐(0) 编辑
摘要: IOS开发中肯定会用到的。原文地址如下:(我改了一下标题,这样检索的时候更容易找到)http://www.cnblogs.com/85538649/archive/2011/10/27/2226014.htmlNSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);NSString *documentsDirectory = [paths objectAtIndex:0];NSString *path = [documentsDirectory string 阅读全文
posted @ 2012-02-27 14:37 心不蒙尘 阅读(4806) 评论(0) 推荐(0) 编辑
  2009年1月12日
摘要: 使用单元测试工具TestDriven.NET调试程序也许我写这篇文章,你可以说你已经知道,那么请将这篇文章作为你的复习,请留言;如果我写的这篇文章,你说对你有帮助,那么请留言;如果我写得这篇文章,你说你有更好的idea,那么请留言。引言在实际的项目中,我们会遇到如下的问题:1. 在编写一些不太好调试的程序时,如WebService 和一些后台运行的程序时,如何调试?2. 在某些架构中存在一些底层框... 阅读全文
posted @ 2009-01-12 10:23 心不蒙尘 阅读(5812) 评论(14) 推荐(1) 编辑
  2009年1月3日
摘要: 1. 什么是内聚?什么是耦合?   内聚是从功能角度来度量模块内的联系,一个好的内聚模块应当恰好做一件事。它描述  的是模块内的功能联系; 耦合是软件结构中各模块之间相互连接的一种度量,耦合强弱取决  于模块间接口的复杂程度、进入或访问一个模块的点以及通过接口的数据。耦合性也称块间联系。指软件系统结构中各模块间相互联系紧密程度的一种度量。模块之间联系越紧密,其耦合性就越强,模块的独立性则越差。模块... 阅读全文
posted @ 2009-01-03 16:37 心不蒙尘 阅读(759) 评论(0) 推荐(0) 编辑