一.基本概念多态是基于继承的基础之上的,多态可以使得父类的指针指向子类的对象。如果函数或参数中使用的是父类类型,可以传入父类、子类对象,但是父类类型的变量不能直接调用子类特有的方法。Animal类的声明和实现// 动物@interface Animal : NSObject- (void)eat;@...
分类:
其他好文 时间:
2014-12-12 14:32:58
阅读次数:
166
@interface MJViewController () { NSMutableArray *_persons;}@end@implementation MJViewController- (void)viewDidLoad{ [super viewDidLoad]; _persons ...
分类:
其他好文 时间:
2014-12-12 13:06:29
阅读次数:
119
很多时候,我们自定义tableview、collectionview的cell,也有时候我们要自定义窗口xib,但创建xib后,其height、width不可修改。这时问题就来了,怎么才能使我们的自定义xib宽高可修改:项目中创建xib,单独的view时,方法:默认Simulated metric中...
分类:
移动开发 时间:
2014-12-12 11:33:32
阅读次数:
186
Bluetooth Driver acts as interface between HCI core and TI Shared Transport Layer.
/drivers/bluetooth/Btwilink.c:
#include
#include
#include
#include
#include
#include
#define DEBUG
#defin...
分类:
其他好文 时间:
2014-12-11 19:15:25
阅读次数:
295
我做了个UIButton的扩展,代码如下:
#import
@interface CheckBoxButton : UIButton
@property (nonatomic,assign) BOOL isChecked;
@end
我通过下面代码来实现点击后切换图片,但是并不能达到效果
if (button.isChecked) {
self.collectio...
分类:
其他好文 时间:
2014-12-11 17:33:02
阅读次数:
152
创建数据库接口:namespace DataModels.IDBHandler{ /// /// 配置参数 数据库操作基类 /// public interface IDBCreater { int Createtable(); }}DBBase...
分类:
数据库 时间:
2014-12-11 17:00:55
阅读次数:
216
??
第一步:在aaa模式在配置用户名和密码
第二步:设置该用户的服务类型为telnet
第三步:设置该用户的privilege level特权级别为3
第四步:在系统模式下进入用户接口user-interface vty0 4
第五步:设置该用户接口的认证模式为aaa认证authentication-mode aaa
第六步:配置设备的loopback地址
第七部:添加以loo...
分类:
Web程序 时间:
2014-12-11 15:53:57
阅读次数:
268
??
第一、将串口两端的协议设置为fr
第二、将两端的接口类型分别设置为fr interface dte/dce
第三、将设置两个端口的数据链路链接标示符dlci设置为相同编号
说明:如果串口的两端的DLCI编号不相同则必须进行第四步、第五步
第四、必须在两端都同时手动增加一条帧中继的地址映射fr map ip 对端的ip 对端的DLCI编号
第五、fr inarp 使能(H3C设备...
分类:
其他好文 时间:
2014-12-11 15:52:41
阅读次数:
176
TC358746AXBG/748XBG 桥接器是功能是把将来自设备的MIPI数据(诸如相机)到应用处理器转换成并行数据输出。有两个接口:CSI-2 TX/RX Interface 和Parallel Port Interface可以配置成两种模式:一种是:Camera sensor的数据 -> br...
分类:
其他好文 时间:
2014-12-11 15:20:47
阅读次数:
2790
#import?<UIKit/UIKit.h>
@interface?ViewController?:?UIViewController
@end
#import?"ViewController.h"
@interface?ViewController?()<UIScrollViewDelegate>
@property(nonatomic,?strong)?N...
分类:
移动开发 时间:
2014-12-11 12:33:03
阅读次数:
186