一、点语法(一)认识点语法声明一个Person类:#import @interface Person : NSObject{ int _age;//默认为@protected}- (void)setAge:(int)age;- (int)age;@endView Code Person类...
分类:
编程语言 时间:
2014-12-16 16:41:37
阅读次数:
160
1. HCI层协议概述: Host Controller Interface(HCI) 就是用来沟通Host和Module。Host通常就是PC,Module则是以各种物理连接形式(USB,serial,pc-card等)连接到PC上的bluetooth Dongle。在Host这一端:appli....
分类:
其他好文 时间:
2014-12-16 16:39:55
阅读次数:
276
#import #import "HMBannerView.h" @interface ViewController : UIViewController // Banner@property (nonatomic, strong) HMBannerView *bannerView; @end #....
分类:
其他好文 时间:
2014-12-16 15:01:03
阅读次数:
245
原文:View Programming Guide for iOSView and Window ArchitectureViews and windows present your application’s user interface and handle the interactions w...
分类:
移动开发 时间:
2014-12-16 14:59:20
阅读次数:
328
1 客户通过代理类来调用其他对象的方法,并且是在程序运行时根据需要动态创建目标类的代理类对象 package lianxi2;
// 静态代理类:代理类和被代理类必须配对,创建的数量如果很多,会很麻烦。
interface SellHouse{ void sellHouse();
}
class H...
分类:
其他好文 时间:
2014-12-16 13:29:27
阅读次数:
165
#ifndef __LINUX_KVM_H#define __LINUX_KVM_H/** Userspace interface for /dev/kvm - kernel based virtual machine** Note: you must update KVM_API_VERSION ...
C++回调函数通过函数指针实现,Java中没有函数指针,可以通过接口实现。 1 interface IShow{ 2 public void show(String str); 3 } 4 5 class ShowA implements IShow{ 6 public v...
分类:
编程语言 时间:
2014-12-16 11:40:06
阅读次数:
162
一、面向对象和封装面向对象的三大特性:封装(成员变量)、继承和多态在OC语言中,使用@interface和@implementation来处理类。@interface就好像暴露在外面的时钟表面,像外界提供展示以及接口。@implementation就好像隐藏在时钟内部的构造实现,把具体的实现封装了起...
分类:
编程语言 时间:
2014-12-16 09:54:38
阅读次数:
143
最近把MySQL从5.5升到5.6以后,mysqldump居然不好用了,提示:代码如下复制代码[root@qttc ~]# /usr/local/mysql/bin/mysqldump -uroot -proot db > bak.sqlWarning: Using a passwordon the...
分类:
数据库 时间:
2014-12-15 23:15:07
阅读次数:
411
1:所有注解都是类2:所有注解类都默认是Annotation接口的子类。3:定义方式: public @interface SomeAnotation{ }4:可以注解的位置 类上 方法上 成员变量上。 返回值上 参数上 局部变量5、如果定义了一个注解之后,没有说明这个注解可以注解的位置,则这个注解...
分类:
编程语言 时间:
2014-12-15 20:17:14
阅读次数:
189