摘要:
如果2个控制器的view是⽗父⼦子关系,那么这2个控制器也应该为⽗父⼦子关系[vc01.view addSubview: vc02.view];[vc01 addChildViewController: vc02];// 会将vc02添加到vc01.childViewControllers数组... 阅读全文
摘要:
CJWaterflowView.h 1 #import 2 3 typedef enum { 4 CJWaterflowViewMarginTypeTop, 5 CJWaterflowViewMarginTypeBottom, 6 CJWaterflowViewMargi... 阅读全文
摘要:
1.OC调⽤用JS - OC传递数据给JS1> 利⽤用UIWebView的某个⽅方法执⾏行JS代码NSString *result = [webView stringByEvaluatingJavaScriptFromString:js];// result是执⾏行完JS代码后的返回值//... 阅读全文
摘要:
// 1.队列组 dispatch_group_t group = dispatch_group_create(); dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAUL... 阅读全文
摘要:
1 static DemoObj *instance; 2 3 /** 4 1. 重写allocWithZone,用dispatch_once实例化一个静态变量 5 2. 写一个+sharedXXX方便其他类调用 6 */ 7 8 // 在iOS中,所有对象的内存空间的分配,最终都会调用... 阅读全文
摘要:
1开始C++1.1 C++的头文件传统的C头文件。C++头文件hpp文件件1.2 命名空间C++引入了新的概念,命名空间可以有效避免大型项目中的各种名称冲突class关键字class是C++的核心,是面向对象编程的核心内容1.3 更严格的类型转化在C++,不同类型的指针是不能直接赋值的,必须强转1.... 阅读全文
摘要:
http://www.cnblogs.com/mjios/archive/2013/03/10/2952258.html 阅读全文
摘要:
http://swift.08dream.com/index.php?s=/Home/Article/detail/id/10036.htmlhttp://swift.08dream.com/index.php?s=/Home/Article/detail/id/10035.html 阅读全文
摘要:
http://blog.jobbole.com/61101/ 阅读全文
摘要:
http://blog.segmentfault.com/jwfing/1190000000520755 阅读全文