`
文章列表
创建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 ...
如果要VIEW支持用户交互,得要设置   self.userInteractionEnabled = YES;  一个简单的UIView例子   @interface DragView : UIImageView { CGPoint startLocation; } @end @implementation DragView - (id) initWithImage: (UIImage *) anImage { if (self = [super initWithImage:anImage]) self.userInteractionEnabled = Y ...
如果想调用某个类的某个方法可以写成这样,这个方法来自NSObject类   performSelector: performSelector:withObject: performSelector:withObject:withObject:  实际调用   [self performSelector:@selector(displayViews) withObject:nil afterDelay:1.0f];   有三个方法分别是   //父视图 [self.view superview] //所有子视图 [self.view subviews] // ...
1.下载最新版本的AXIS2 2.分别设置环境变量 3.wsdl2java.bat -uri http://xx/xx?wsdl -o filename
1.直接出来横屏用以下代码 - (BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation { return (interfaceOrientation != UIInterfaceOrientationPortrait); } 2.有重力感应直接用 - (BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation ...
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 ma ...
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 t ...
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 ...
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\ ...
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 v ...
Unix与dos格式下换行符的转换方法 用IAR编译freakz的时候遇到一个warningWarning[Pa050]: non-native end of line sequence detected上网查了下,原因是Linux与Dos下换行符的HEX值不同。Dos下用的是一个“回车符”加一个“换行符”,而linux文件只用一个。找到一个用ue来批量转换的方法,与大家共享一下:1.打开UltraEdit2.选择在文件中替换3.在查找中输入: ^n (代表在UNIX格式下的回车字符)4.在替换中输入: ^P (代表在DOS格式下的回车字符)5.选择文件类型为*
还有不到几分钟,今天就要结束了。然而,今天并不会消失。在由无数个今天累积的昨天里,以及即将到来的每个明天里,我们都将躺在时间的河流上,无尽追忆。晚安,献给那些向往光明,并追求光明,以及至今为追求光明而被困在黑暗的荆棘从中的人们。
1.javascript的变量不用声明   2.typeof运算符 如果返回"undefined",说明变量是Undefined的. 如果返回"boolean",说明变量是Boolean的. 如果返回"number",说明变量是Number的. 如果返回"string",说明变量是String的. 如果返回"object",说明变量是引用类型的或着是Null   3.Undefined类型 var a; alert(a);     //output "undefin ...
今天是汶川地震三周年纪念日,读者诸君一定知道我们的哀悼所在。那场大地震令山河破碎,八万多人罹难失踪,连绵不绝的哀伤延续至今。哀伤是为同胞一去不还,五月就此成为悲哀的月份;哀伤也因为念及自身无力,不能抵挡决绝的离逝。又一年祭祀重来,躺在时间的河流上怀念他们,实有必要确认诸多问题:他们是谁?他们遇到了什么?他们在哪里?他们想要我们做什么?   馨香几枝,烟气袅袅,升腾至虚空。他们不是冰冷的数字,他们也曾顶着百家姓活泼泼地存在过。他们用整整一生,走进五月的废墟。他们开心地在世上生活过七年,抑或更长更短的岁月。他们是父母,是子女,是姐妹,是兄弟,是黄皮肤的人。他们是寨子里的居民和过客,是跋涉山川河 ...
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 tablespac ...
Global site tag (gtag.js) - Google Analytics