在appDelegate处理来自XMPP服务器的所有请求1.在appDelegate.h 中添加XMPP的主头文件定义XMPP相关的属性的方法定义> 全局的XMPPStream,只读属性2.在appDelegate.m 的interface中新建方法: 1.设置XMPPStream>setupSt....
分类:
其他好文 时间:
2015-01-24 11:35:53
阅读次数:
196
参考:http://blog.csdn.net/xluren/article/details/38986667执行service network restart后出现如下错误FAILED:Bringing up interface eth0: Device eth0 does not seem to...
分类:
其他好文 时间:
2015-01-24 00:17:50
阅读次数:
157
目前想到的可以使用规约模式的情况(以后想到了再补充):1. 当有一组条件,被多处使用,且这些条件可以任意组合时,这个时候考虑使用规约模式来解耦;下面看一下规约模式的简单实现: public interface ISpecification where T : class { ...
分类:
其他好文 时间:
2015-01-23 22:52:43
阅读次数:
263
从BViewController传到AViewController在BViewController.h中#import @protocol IDDelegate - (void)setIDValue:(NSString *)value;@end@interface BViewController :...
分类:
其他好文 时间:
2015-01-23 19:57:26
阅读次数:
214
1. 谁 alloc ,谁 release;2. 谁要占用谁retain;3. 谁不想占用对象时就 让对象计数器release;4.谁 retain,谁release; 1 // Book类 2 @interface Book:NSObject 3 4 { 5 6 int _pric...
分类:
其他好文 时间:
2015-01-23 06:05:53
阅读次数:
163
Atitit.class 与type的区别,抽象的级别 class, delegate,interface委托的本质
1. 委托是粒度更细的接口 1
2. 委托模式 1
3. Java中的委托 1
4. class 与type的区别 2
1. 委托是粒度更细的接口
接口(interface)是面向类(class)的,而委托(delegate)是面向方法(method)和属性...
分类:
编程语言 时间:
2015-01-23 00:57:16
阅读次数:
179
UIPickerView和UIDatePicker是类似的控件,只不过UIDatePicker是日期控件,只能放日期,而UIPickerView可以放任何东西。UIPickerView高度固定,设置无效。使用前时要添加代理#import @interface AppDelegate : UIResp...
分类:
其他好文 时间:
2015-01-22 23:21:19
阅读次数:
325
一、OC简介1.简介 它是C语言的基础上,增加了一层面向对象语法 OC完全兼容C语言 可以在OC代码中混入C语言代码,甚至是C++代码 可以使用OC开发mac OS X平台和IOS平台的应用程序2.关键字1> 基本上所有的关键字都是以@开头2> 关键字 @interface、@implem...
分类:
编程语言 时间:
2015-01-22 20:14:56
阅读次数:
221
转自:http://chnic.iteye.com/blog/198745忙了好一段时间,总算得了几天的空闲。貌似很久没更新blog了,实在罪过。其实之前一直想把JNI的相关东西整理一下的,就从今天开始吧。Here we go.JNI其实是Java Native Interface的简称,也就是j....
分类:
其他好文 时间:
2015-01-22 15:24:41
阅读次数:
157
一、装饰模式定义装饰模式定义:Attach additional responsibilities to an object dynamically keeping the same interface. Decoators provide a flexible alternative to sub...
分类:
移动开发 时间:
2015-01-22 14:45:20
阅读次数:
325