A.给某个类扩充方法(不改变原来的类)例如,给类Person加上名为Simon的category,加上一个-study方法使用()注明Person+Simon.h 1 @interface Person (Simon) 2 - (void) study; 3 @end 4 5 Person+Si.....
分类:
其他好文 时间:
2015-05-13 21:43:07
阅读次数:
170
今天用下面这个方法添加UIImageView但是运行却不显示@interface ViewController ()
@property(nonatomic, weak)UIImageView *imageView;
@end@implementation ViewController - (void)viewDidLoad {
[super viewDidLoad];
UIImag...
分类:
移动开发 时间:
2015-05-13 19:47:24
阅读次数:
152
CASE ISNULL(b.enddate , '2000-1-1') WHEN '2000-1-1' THEN '未发稿' ELSE '已经发稿' END如果时间为空,则显示为值‘200-1-1’ , 因为判断CASE b.enddate WHEN null THEN '未发稿' ELSE '已经...
分类:
数据库 时间:
2015-05-13 14:41:30
阅读次数:
132
概述: 可以简单地给代码进行一个分组,方便代码的查找(可以不用记,无所谓的小东西)例如: #pragma mark dog类的声明 @interface Dog :NSObject @end @implementation Dog @end#pragma mark - //给内容加个空...
分类:
其他好文 时间:
2015-05-13 12:11:14
阅读次数:
96
对象方法 -(void)run; 1)对象方法的实现只能写在 @implementation ..@end 中,对象方法的声明只能写在@interface ..@end 中 2)对象方法都以-号开头,类方法都以+号开头 3)对象方法只能由对象...
分类:
其他好文 时间:
2015-05-13 12:02:16
阅读次数:
135
%% 图像抓取并存入当前目录image文件夹下% 建立图片存储文件夹
if exist('image','dir')~= 7
mkdir([cd,'/image']) % 与下一句一样
end
directory=[cd,'/image/']; %当前工作目录下文件夹%定义一个监控界面
hf = figure('Units', 'Normalized', 'Menubar', 'None',...
分类:
其他好文 时间:
2015-05-13 10:41:00
阅读次数:
877
Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After re...
分类:
其他好文 时间:
2015-05-13 08:46:52
阅读次数:
101
plsql 有点:交互式 非过程化 数据操纵能力强 自动导航语句简单 调试简单 想率高 声明类型的方式 1.基本类型 2.引用变量 3.记录型变量 基本格式 declare 声明 begin exception end 判断语句 if:。。then。。。 else end if;循环 loop 退出...
分类:
数据库 时间:
2015-05-13 00:30:24
阅读次数:
252
252627 //第一种方式procedure TForm1.btn1Click(Sender: TObject);beginWith TForm2.Create(Application) doTry ShowModal;finally free;end;end; //第二种方式proced...
分类:
其他好文 时间:
2015-05-12 20:41:57
阅读次数:
121
ALTER?PROCEDURE?SP_TEST?AS
BEGIN
if?1=0
SELECT?UserName,TrainerID,TrainerInfoID?FROM?T_TrainerInfo;
else
select?*?from?T_UserInfo;
END
GO...
分类:
数据库 时间:
2015-05-12 19:22:55
阅读次数:
163