CAGradientLayer可以方便的处理颜色渐变。Properties:@property(copy)NSArray*colors渐变颜色的数组[cpp]view plaincopy[NSArrayarrayWithObjects:(id)[[[UIColorblackColor]colorWi...
分类:
其他好文 时间:
2014-08-14 16:26:38
阅读次数:
125
Description
Problem G - Great Numbers
In this problem you have to count the number of great numbers of length n. Here a great number must have the following property:
the number must be divis...
分类:
其他好文 时间:
2014-08-13 22:35:27
阅读次数:
219
#import @interface APRoundedButton : UIButton@property (nonatomic, assign) int style;@end//// Created by Alberto Pasca on 27/02/14.// Copyright (c) .....
分类:
其他好文 时间:
2014-08-13 12:32:26
阅读次数:
212
@interface UIView : UIResponder/*** 通过一个frame来初始化一个UI控件*/- (id)initWithFrame:(CGRect)frame;// YES:能够跟用户进行交互@property(nonatomic,getter=isUserInteractio...
分类:
移动开发 时间:
2014-08-13 00:45:14
阅读次数:
276
Property Animation介绍:
出生在3.0,是利用了View所拥有的属性,进行一系列的操作。比如一个View有什么样的setAbc的属性,那么理论上就可以设置它。
它不仅改变View的绘制,也改变了View的属性;而Tween Animation 只改变View的绘制。
ValueAnimator 为动画的基类,它有一个子类ObjectAnimator。需要Interpola...
分类:
移动开发 时间:
2014-08-12 22:04:44
阅读次数:
339
题意:给n个医生,这些医生有一个上班时间,然后给一些病人,病人有一个到达的时间,以及一些诊断,诊断有property(优先级)和duration(诊断时间)这两个属性,每个病人可能要诊断多次,最后问每个病人的全部疗程完成离开医院的时间是多少。分析:用优先队列存储诊断,病人,然后模拟一个诊断过程,完成...
分类:
其他好文 时间:
2014-08-12 21:33:34
阅读次数:
284
10,文件委托,以便操作文件。头部看起来像是这样。@interface MyFileManager : NSObject@property(strong)NSFileManager *fileManager;@end.m文件#import "MyFileManager.h"@implementati...
分类:
其他好文 时间:
2014-08-12 16:17:34
阅读次数:
250
<c3p0-config>
??<default-config>
?<!--当连接池中的连接耗尽的时候c3p0一次同时获取的连接数。Default:?3?-->
?<property?name="acquireIncrement">3</property>
?
?<!--定义在从数据库获取新连接失败...
分类:
其他好文 时间:
2014-08-12 14:03:04
阅读次数:
175
/*alertView.h*/#import@interfacealertView:UIViewController{//创建控件对象UIAlertView*iToast;}@property(nonatomic,retain)UIAlertView*iToast;//让警告框消失的方法-(void...
分类:
其他好文 时间:
2014-08-12 13:17:34
阅读次数:
251
原文:弄清 CSS3 的 transition 和 animation弄清 CSS3 的 transition 和 animation
transition
transition 属性是transition-property,transition-duration,transition-timing...
分类:
Web程序 时间:
2014-08-12 10:09:23
阅读次数:
211