码迷,mamicode.com
首页 > 其他好文
代理设计模式规范delegate和protocol
充当代理的步骤:首先要明确谁请别人代理,谁当别人的代理1》请代理三部曲:1 写一个协议protoc,把自己不方便做的事列出来(@protocol studentDelegate )2 包含一个遵守协议的对象,对象可以是任意类型iddelegate;3 当发生一些事情想通知代理去做,就是调用代理对应的...
分类:其他好文   时间:2015-12-18 21:24:20    阅读次数:169
UITableView的使用
6.14.1UITableViewDataSource协议方法初始化数据 //设置组与组之间的间距 self.tableView.sectionHeaderHeight=5;//footer //将类与代理类建立关联,用代码或者利用连线的方式来实现self.tableView.dataSourc.....
分类:其他好文   时间:2015-12-18 21:23:42    阅读次数:342
docfx组件介绍--MarkdownLite
在docfx中,最重要的就是生成文档,把markdown文件(gfm语法)转换成html。 为了这一步,我们找了N个.net开源项目,发现要么是common markdown的,要么不容易扩展,没有一个是基于gfm的并且很容易扩展的语法的markdown开源项目。无奈之下,再找.net下执行j...
分类:其他好文   时间:2015-12-18 21:25:17    阅读次数:330
组件_ UIToolbar 与 组件_UISearchBar
组件_ UIToolbar/**1.顶部toolbar 2. TextField可以以UIBarButtonItem的自定义视图的方式加入toolbar 3.三个按钮 4.将UIBarButtonItem加入toolBar **/UIToolbar*toolBar = [[UIToolbarallo...
分类:其他好文   时间:2015-12-18 21:23:56    阅读次数:301
UILabel的使用
常用属性UILabel//显示的文字@property(nonatomic,copy)NSString *text;//字体@property(nonatomic,retain)UIFont *font;//文字颜色@property(nonatomic,retain)UIColor*textCol...
分类:其他好文   时间:2015-12-18 21:23:52    阅读次数:188
ZOJ Light Bulb - 3203
题意:人左右走动,求影子L的最长长度。思路:三分人在D上的位置。注意影子长=D-x+H-(H-h)*D/x。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #define clc(a,b)...
分类:其他好文   时间:2015-12-18 21:21:45    阅读次数:225
Codeforces 286E
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 using namespace std; 10 11 const int maxn...
分类:其他好文   时间:2015-12-18 21:20:41    阅读次数:329
checkbox组件
1 checkbox.css 2 3 *{padding: 0;margin:0;} 4 span{background: url(images/no.gif) no-repeat;padding-left: 20px;} 5 .active{background: url(images/yes.....
分类:其他好文   时间:2015-12-18 21:21:48    阅读次数:274
Patterns-Flyweight
最近在组里讨论设计模式,第一个是享元模式。自己贴了一篇这个文章:http://www.cnblogs.com/rush/archive/2011/10/01/2197785.html感觉这篇讲的不够生动同事贴出来一篇这个文章http://blog.csdn.net/jason0539/article...
分类:其他好文   时间:2015-12-18 21:22:38    阅读次数:187
如何明确应该使用什么流
一:明确源1.Read InputStream2.是不是纯文本文件 是就是Read 不是就是InputStreasm3.设备:硬盘 控制台 键盘二:明确目的1. Writer OutputStream2.是不是纯文本文件 是就是Writer 不是就是OutputStream3.设备:硬盘 控制台 内...
分类:其他好文   时间:2015-12-18 21:20:38    阅读次数:147
genymotion虚拟机启动失败
错误提示如下:Make sure that you have installed it correctly before starting Genymotion.解决方法(重启VirtualBox服务):1 sudo /etc/init.d/vboxdrv setup2 sudo VirtualBo...
分类:其他好文   时间:2015-12-18 21:20:51    阅读次数:211
Codeforces 325D
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 using namespace std;10 11 const int maxn=3000*3000*...
分类:其他好文   时间:2015-12-18 21:20:45    阅读次数:255
UIStoryboard和UIResponder
6.17UIStoryboard//获取someboard中InitialViewControllerUIStoryboard*story = [UIStoryboardstoryboardWithName:@"someboard"bundle:nil];self.window.rootViewCo...
分类:其他好文   时间:2015-12-18 21:20:31    阅读次数:184
UIImagePickerController从拍照、图库、相册获取图片
iOS 获取图片有三种方法:1. 直接调用摄像头拍照2. 从相册中选择3. 从图库中选择UIImagePickerController 是系统提供的用来获取图片和视频的接口;用UIImagePickerController 类来获取图片视频,大体分为以下几个步骤:1. 初始化UIImagePicke...
分类:其他好文   时间:2015-12-18 21:19:16    阅读次数:225
PANIC : Error configuring AvalonLogSystem :
ll /tpsys/weblogic/user_projects/domains/mall/velocity.log有1.7版本的的,不用这个1.4的。1.4会有这个问题:PANIC : Error configuring AvalonLogSystem :java.io.FileNotFoundE...
分类:其他好文   时间:2015-12-18 21:17:37    阅读次数:213
Coderforce 560B-Gerald is into Art
题目大意:给了三个矩形的长和宽,问第一个能否把其他两个装在内部,要求内部之间不重叠,不出界(可重边)?题目分析:这道题。。。考虑不够全面导致比赛时没有出来。。。当时,就是觉得自己的代码很完美,不可能不对!当时也是较起真儿来啦,全场就我一个人没A这道题,确实有点脑子热!以后再遇到这种情况一定要冷静!要...
分类:其他好文   时间:2015-12-18 21:19:06    阅读次数:217
U3D中的协同等待函数
WaitForSeconds.WaitForseconds等待函数; 创建一个yield指令,来等待给定的秒数; 1 using UnityEngine; 2 using System.Collections; 3 4 public class example:MonoBehaviour 5...
分类:其他好文   时间:2015-12-18 21:18:06    阅读次数:724
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!