问题:希望能够编写自己的 Block Objects 或与 iOS SDK 类使用 Block Objects。 讨论:1.Block Objects 的对象可以内联或编码为独立的代码块。我们从后一种开始:假设你在 Objective-C 中有一个方法,既能接受 NSInteger 类的 2 个整....
分类:
其他好文 时间:
2014-10-28 13:45:09
阅读次数:
170
Exception Block主要关注的点在于Exception信息的展示。Exception不同于一般的log信息,是系统设计者未考虑的错误情况。当异常出现时,错误的情况,或者暴露一些比较敏感的系统信息,或者将一些不怎么友好的信息显示给一些不怎么友好的客户。这时一个计算机异常就引入了一个客户异常,一个终极异常。所以异常处理的目标就是截断异常,进而恢复系统。把合理的异常信息显示给相对应的用户。...
分类:
其他好文 时间:
2014-10-28 10:23:27
阅读次数:
225
Variables are a fundamental building block of all programming languages. In this lesson, I'll describe briefly what a variable is, explain the basic r...
分类:
其他好文 时间:
2014-10-28 09:21:40
阅读次数:
253
select的逻辑读逻辑读:=== db block gets +consistent gets第一步:算出dba ==========>找到DBA,5号文件,9509号块???????第二步:根据第一步做hash运算。算出在哪个bucket上面,比如是100。第三步:在hash table上找1....
分类:
其他好文 时间:
2014-10-28 00:27:09
阅读次数:
215
??
1
建立一个别踩白块的项目dtwb(Don’ttouch white block)
2
修改main.cpp中的代码
3
修改AppDelegate.cpp中的代码
4
案例代码
Block.h
#ifndef
__BLOCK_H__
#define
__BL...
分类:
其他好文 时间:
2014-10-27 19:32:23
阅读次数:
296
iOS中使用block进行网络请求回调HttpRequest.h//// HttpRequest.h// UseBlockCallBack//// Created by Michael on 2/13/14.// Copyright (c) 2014 EIMS. All rights res...
分类:
移动开发 时间:
2014-10-27 16:59:52
阅读次数:
213
[WXApi registerApp:weixinAppKey];if(![WXApi isWXAppInstalled]){ UIAlertView *alert=[[UIAlertView alloc]initWithTitle:@"信息" message:@"未安装微信,不能分享" deleg...
分类:
微信 时间:
2014-10-27 15:37:51
阅读次数:
428
1 Server: 5, win: 20pkt, SRU: 256KB, link_buf: 32pkt, Seed: 1, 2 Block_trans: 1350200B, RTT: 100us, RTT_rand: 20us, SYN_del: 0-0us 3 4 0.99...
分类:
其他好文 时间:
2014-10-27 12:37:23
阅读次数:
366
1 document.getElementById('params_box').style.display = 'block';修改为1 document.getElementById('params_box').style.display = 'table-row';
分类:
编程语言 时间:
2014-10-27 12:37:14
阅读次数:
320
STAlertViewThe idea of this component is to improve the readability while using the native UIAlertView. The UIKit alert view works with delegates. Whe...
分类:
其他好文 时间:
2014-10-26 21:08:40
阅读次数:
180