打钩的动画
by 伍雪颖
github
#import
"CheckboxControl.h"
@implementation
CheckboxControl {
NSInteger lineWidth;
UIColor *lineColor;
}
- (void)awakeFromNib {
...
分类:
其他好文 时间:
2015-08-17 14:04:49
阅读次数:
135
编程测试当中遇到这么一个问题:1,增加kernel时OpenCL编译报错,AMD 平台报错说该source kernel无法生成相应的executableprogram object;2,但是同一套代码在intel E3上可以正常运行;很明显,又是implementation-dependent的问...
分类:
其他好文 时间:
2015-08-16 13:38:18
阅读次数:
142
5) The Java Interface
a) Reading Data from a Hadoop URL.
使用hadoop URL来读取数据
b) Although we focus mainly on the HDFS implementation, DistributedFileSystem, in general you should strive to write y...
分类:
其他好文 时间:
2015-08-16 12:20:05
阅读次数:
98
Bridge模式的概念
Bridge 模式是构造型的设计模式之一。Bridge模式基于类的最小设计原则,通过使用封装,聚合以及继承等行为来让不同的类承担不同的责任。它的主要特点是把抽象(abstraction)与行为实现(implementation)分离开来,从而可以保持各部分的独立性以及应对它们的功能扩展。
Bridge模式的应用场景
面向对象的程序设计(OOP)里有类继承(...
分类:
编程语言 时间:
2015-08-16 10:45:33
阅读次数:
159
单例//.h1 + (Instannce *)shareInstance;//.m 1 static Instannce *instance = nil; 2 @implementation Instannce 3 //定义一个创建单例对象的方法 4 + (Instannce *)shareInst...
分类:
移动开发 时间:
2015-08-16 00:35:53
阅读次数:
227
//? Created by 妖精的尾巴 on 15-8-15. //? Copyright (c) 2015年 妖精的尾巴. All rights reserved. // #import "ViewController.h" #define kHeight 20 @interface ViewController () @end @implementation...
分类:
其他好文 时间:
2015-08-15 21:38:29
阅读次数:
250
一、实例变量可见度可见度特点public实例变量可以在类的外部和内部操作protected实例变量只能在该类和其子类内操作默认private实例变量只能在该类内访问内部:相应类的@implementation和@end之间@interfacePerson:NSObject{@publicNSString*_name;@protectedNSString*_gender;i..
分类:
其他好文 时间:
2015-08-15 18:32:03
阅读次数:
99
#import "EXFifthViewController.h"@interface EXFifthViewController ()@end@implementation EXFifthViewController@synthesize scrollView;@synthesize textVi...
分类:
移动开发 时间:
2015-08-14 15:36:33
阅读次数:
186
添加这段代码@interface CLLocationManager (Simulator)@end@implementation CLLocationManager (Simulator)-(void)startUpdatingLocation{ float latitude = 32.061;....
分类:
移动开发 时间:
2015-08-14 11:16:06
阅读次数:
118
首先, 先创建三个VC.
完成点击按钮, 进入下一页, 并能够返回.要先把导航视图控制器创建出来.
在AppDelegate.m 文件中代码如下:#import "AppDelegate.h"
#import "MainViewController.h"
@interface AppDelegate ()
@end@implementation AppDelegate
- (void)deall...
分类:
其他好文 时间:
2015-08-13 23:43:15
阅读次数:
195