Decorator Pattern
Attach additional responsibilities to an object dynamically keeping the same interface. Decorators provide a flexible alternative
to subclassing for extending functionality....
分类:
其他好文 时间:
2015-07-20 23:49:40
阅读次数:
188
一,循环引用最常见的代码类型。
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
NSMutableArray *firstArray=[[NSMut...
分类:
其他好文 时间:
2015-07-20 23:34:54
阅读次数:
123
一,循环引用最常见的代码类型。- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. NS...
分类:
其他好文 时间:
2015-07-20 22:57:02
阅读次数:
117
一,在桌面上新建立一个工程,在ViewController.m中输入如下代码:- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically f...
分类:
其他好文 时间:
2015-07-17 20:44:54
阅读次数:
103
1.1 Implement an algorithm to determine if a string has all unique characters. What if you cannot use additional data structure?这道题让我们判断一个字符串中是否有重复的字符...
分类:
其他好文 时间:
2015-07-15 14:56:26
阅读次数:
100
style : enumerationSet an additional text style.Supported text styles are:Text.Normal - the defaultText.OutlineText.RaisedText.SunkenRow { Text { font...
分类:
其他好文 时间:
2015-07-14 17:47:50
阅读次数:
139
The key to this problem is to identify all the words that can be added to a line and then identify the places that require an additional space (to mak...
分类:
其他好文 时间:
2015-07-14 06:03:24
阅读次数:
108
hadoop的 namenode重新格式化以后,重启hbase,发现它的hmaster进程启动后马上消失,查看一大堆日志,最后在zookeeper的日志里发现如下问题
Unable to read additional data from client sessionid 0x14e86607c850007, likely client has closed socket
解决 方法:删除掉h...
分类:
系统相关 时间:
2015-07-13 18:43:12
阅读次数:
156
在storyBoard中直接选择对应的语言,日期格式用代码方式显示:- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib.....
在Service中onStartCommand(Intent intent, int flags, int startId)这三个参数的含义分别是,intent就是startService(Intent intent)中的intent;flags代表flags表示启动服务的方式: ? Additional data about ...
分类:
其他好文 时间:
2015-07-11 13:44:13
阅读次数:
131