浪花的博客(最淡的墨水,也胜过最强的记忆 )
langhua9527 · 共 144 篇文章
控件的使用
创建UIButton // Create a button sized to our art UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; button.frame = CGRectMake(0.0f, 0.0f, 300.0f, 233.0f); button.center = CGPointMake(160.0f, 140.0f); // Set up the button aligment properties button.contentVerticalAlignment = UIControlCon…
2012-02-06 16:06 · 评论(0)
手势与触摸
如果要VIEW支持用户交互,得要设置 self.userInteractionEnabled = YES; 一个简单的UIView例子 @interface DragView : UIImageView { CGPoint startLocation; } @end @implementation DragView - (id) initWithImage: (UIImage *) anImage { if (self = [super initWithImage:anImage]) self.userInteractionEnabled = YES; return self; } - (v…
2012-01-30 17:47 · 评论(0)
UIView总结
如果想调用某个类的某个方法可以写成这样,这个方法来自NSObject类 performSelector: performSelector:withObject: performSelector:withObject:withObject: 实际调用 [self performSelector:@selector(displayViews) withObject:nil afterDelay:1.0f]; 有三个方法分别是 //父视图 [self.view superview] //所有子视图 [self.view subviews] //自身的window self.view.window …
2012-01-27 18:32 · 评论(1)
使用Axis2的wsdl2java.bat工具生成java代码
1.下载最新版本的AXIS2 2.分别设置环境变量 3.wsdl2java.bat -uri http://xx/xx?wsdl -o filename
2012-01-08 18:29 · 评论(0)
IPHONE开发笔记
1.直接出来横屏用以下代码 - (BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation { return (interfaceOrientation != UIInterfaceOrientationPortrait); } 2.有重力感应直接用 - (BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation { return (interface…
2011-12-08 10:27 · Objective-c · 评论(0)
怎么样把3.x.x版本的XCODE安到IOS 10.7上面
Installing Xcode 3.2.6 On Lion Redux In my last post I gave a set of simple steps that allowed one to install Xcode 3.2.6 on Lion. In looking through the isDevToolsCompatible function again, I noticed that it would return true if the COMMAND_LINE_INSTALL environment variable was set no matter what …
2011-11-23 22:35 · 评论(0)
Matlab学习笔记[4](Two-Dimensional Plots)
4.1 THE plot COMMAND plot(x,y,‘line specifiers’,‘PropertyName’,PropertyValue) x,y分别是大小相等的Vector Line Specifiers solid (default) - dotted : dashed -- dash-dot -. The line color specifiers red r green g blue b The marker type specifiers plus sign + circle o asterisk * 例子 plot(x,y,‘g:d’) plot(x,y,‘--y…
2011-09-11 10:57 · 评论(0)
Matlab学习笔记[3](Using Script Files and Managing Data)
3.1 INPUT TO A SCRIPT FILE 3.1.1 The variable is defined and assigned a value in the script file. 3.1.2 The variable is defined and assigned a value in the Command Window. 3.1.3 The variable is defined in the script file, but a specific value is entered in the Command Window when the script file is…
2011-09-11 10:38 · 评论(0)
Matlab学习笔记[2](Mathematical Operations with Arrays)
2.1 ADDITION AND SUBTRACTION matrix相加、减只是简单的值如 VectA=[8 5 4]; VectB=[10 2 7]; 2.2 ARRAY MULTIPLICATION matrix相乘 A*B 要求A的列要等B的行,结果是A行B列。。就是线性代数那种矩阵乘法 2.3 ARRAY DIVISION matrix相除 Identity matrix 对角线为1,其它为0,行列相同的,是单位矩阵 Inverse matrix A*B=单位矩阵 A和B互为反转矩阵 左除与右除 左除 AX = B X=A\B 右除 XA = B X=B/A 2.4 ELEMENT…
2011-09-11 01:38 · 评论(0)
Matlab学习笔记[1](Creating Arrays)
1 CREATING A ONE-DIMENSIONAL ARRAY (VECTOR) 1.1 Creating a vector from a known list of numbers 例子 yr=[1984 1986 1988 1990 1992 1994 1996] pop=[127; 130; 136; 145; 158; 178; 211] Row vector 中间可以用space 或者用square brackets(,)号来隔开 Column vector 每一个Column要用semicolon或者用Enter换行隔开 1.2 Creating a vector with…
2011-09-11 00:17 · 评论(0)
Android hosts文件 换行 window unix
Unix与dos格式下换行符的转换方法 用IAR编译freakz的时候遇到一个warning Warning[Pa050]: non-native end of line sequence detected 上网查了下,原因是Linux与Dos下换行符的HEX值不同。Dos下用的是一个“回车符”加一个“换行符”,而linux文件只用一个。 找到一个用ue来批量转换的方法,与大家共享一下: 1.打开UltraEdit 2.选择在文件中替换 3.在查找中输入: ^n (代表在UNIX格式下的回车字符) 4.在替换中输入: ^P (代表在DOS格式下的回车字符) 5.选择文件类型为*.asc 6.…
2011-08-03 14:42 · Android hosts文件 换行 window unix · 评论(1)
晚安,献给那些向往光明,并追求光明,以及至今为追求光明而被困在黑暗的荆棘从中的人们。
还有不到几分钟,今天就要结束了。然而,今天并不会消失。在由无数个今天累积的昨天里,以及即将到来的每个明天里,我们都将躺在时间的河流上,无尽追忆。晚安,献给那些向往光明,并追求光明,以及至今为追求光明而被困在黑暗的荆棘从中的人们。
2011-07-28 23:54 · 评论(0)
ECMAScript基础
1.javascript的变量不用声明 2.typeof运算符 如果返回"undefined",说明变量是Undefined的. 如果返回"boolean",说明变量是Boolean的. 如果返回"number",说明变量是Number的. 如果返回"string",说明变量是String的. 如果返回"object",说明变量是引用类型的或着是Null 3.Undefined类型 var a; alert(a); //output "undefined" alert(b); //output "undefined" 两个输出都是undefined,即使没有声明过 但是这样用的话就会产生错误…
2011-06-19 23:58 · html+javascript+css · 评论(0)
躺在时间的河流上怀念他们
今天是汶川地震三周年纪念日,读者诸君一定知道我们的哀悼所在。那场大地震令山河破碎,八万多人罹难失踪,连绵不绝的哀伤延续至今。哀伤是为同胞一去不还,五月就此成为悲哀的月份;哀伤也因为念及自身无力,不能抵挡决绝的离逝。又一年祭祀重来,躺在时间的河流上怀念他们,实有必要确认诸多问题:他们是谁?他们遇到了什么?他们在哪里?他们想要我们做什么? 馨香几枝,烟气袅袅,升腾至虚空。他们不是冰冷的数字,他们也曾顶着百家姓活泼泼地存在过。他们用整整一生,走进五月的废墟。他们开心地在世上生活过七年,抑或更长更短的岁月。他们是父母,是子女,是姐妹,是兄弟,是黄皮肤的人。他们是寨子里的居民和过客,是跋涉山川河流的人…
2011-05-12 14:02 · 评论(0)
oracle表空间大小查看
SELECT c.tablespace_name tablespace_name, ROUND(a.bytes/1048576,2) total_size,ROUND((a.bytes-b.bytes)/1048576,2) used_size, ROUND(b.bytes/1048576,2) free_size, ROUND(b.bytes/a.bytes * 100,2)||'%' free_pct FROM (SELECT tablespace_name,SUM(a.bytes) bytes FROM sys.DBA_DATA_FILES a GROUP BY tablespace_…
2011-03-08 15:42 · 评论(0)