package com.leegh.parameterization/** * @author Guohui Li */class Pair_Ordering[T: Ordering](val first: T, val second: T) { def bigger(implicit order....
分类:
其他好文 时间:
2015-08-29 09:44:52
阅读次数:
215
1、UIView的常见的属性@property(nonatomic) CGRect frame;
@property(nonatomic) CGRect bounds;
@property(nonatomic) CGPoint center;
@property(nonatomic) CGAffineTransform transfor...
分类:
移动开发 时间:
2015-08-29 06:19:43
阅读次数:
210
一、UITableView的创建
表格控件在创建时必须指定样式,只能使用以下实例化方法
[[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStyleGrouped];UITableView的两种样式 1> UITableViewStylePlain
2> UITableViewStyleGrouped2.UIT...
分类:
移动开发 时间:
2015-08-29 06:18:17
阅读次数:
199
package com.leegh.parameterization/** * @author Guohui Li */class Pair_NotPerfect[T 0) first else second}//class Pair_NotPerfect[T 0) first else sec.....
分类:
其他好文 时间:
2015-08-28 12:24:45
阅读次数:
116
#import "RootViewController.h"#import "SecondViewController.h"#define kScreenWidth [UIScreen mainScreen].bounds.size.width#define kScreenHeight [UIScr...
分类:
移动开发 时间:
2015-08-27 22:54:43
阅读次数:
222
#import "RootViewController.h"#define kScreenWidth [UIScreen mainScreen].bounds.size.width#define kScreenHeight [UIScreen mainScreen].bounds.size.heig...
分类:
移动开发 时间:
2015-08-27 22:34:48
阅读次数:
170
package com.leegh.parameterization/** * @author Guohui Li */class Pair[T 0) first else second}class Pair_Lower_Bound[T](val first: T, val second: T) ....
分类:
其他好文 时间:
2015-08-27 20:48:28
阅读次数:
150
class UILabelOverride: UILabel { override func textRectForBounds(bounds: CGRect, limitedToNumberOfLines numberOfLines: Int) -> CGRect { ...
分类:
其他好文 时间:
2015-08-27 18:24:05
阅读次数:
163
屏幕适配iPhone4之前没有适配,不用适配经常会出现坐标值写死的代码//#define ScreenW 320//#define ScreenH 480#define ScreenW [UIScreen mainScreen].bounds.size.width#define ScreenH [U...
分类:
其他好文 时间:
2015-08-25 23:08:36
阅读次数:
208
当我在viewDidLoad()方法内添加以下代码的时候发现程序运行时不会有动画过度效果,而是直接跳到了最后。 let x = (self.view.bounds.size.width - 268) / 2 scanImage.frame = CGRectMake(x, ...
分类:
其他好文 时间:
2015-08-20 00:59:23
阅读次数:
282