http://ued.ctrip.com/blog/?p=3589#more-3589以前做项目的时候就依葫芦画瓢的设置 { font-family:arial,”microsoft yahei”,simsun,sans-self; } 等类似的字体,然而当更多的设备和系统出现后,以前这样的设置已不...
分类:
Web程序 时间:
2014-09-03 16:42:16
阅读次数:
209
在
iOS7中,如果某个UIViewController的self.view第一个子视图是UIScollView,同时当这个
UIViewController被push或initWithRootController成为
UINavigationController控制的Controller时,这个UIViewController的view的子视图
UIScollView的所有子视图,都会被下移64px。这个..
分类:
其他好文 时间:
2014-09-03 15:07:17
阅读次数:
159
1.searchResultsUpdater:设置显示搜索结果的控制器 ????_mySearchController.searchResultsUpdater?=?self; 2.dimsBackgroundDuringPresentation:设置开始搜索时背景显示与否 ????_mySearchControll...
分类:
移动开发 时间:
2014-09-03 13:23:17
阅读次数:
196
代码截屏分五步:
首先在视图控制器上创建一个视图
UIView *aView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 568)];
aView.backgroundColor = [UIColor blackColor];[self.view addSubview:aView];[aView release];
...
分类:
移动开发 时间:
2014-09-03 13:04:36
阅读次数:
222
Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime complexity...
分类:
其他好文 时间:
2014-09-03 12:55:46
阅读次数:
227
@synthesize关键字: 根据@property设置,自动生成成员变量相应的存取方法,从而可以使用点操作符来方便的存取该成员变量 。@implementation 关键字,表明类的实现 @end 结束self 关键字 :类似于java中的this,是隐藏参数,指向当前调用方法的类。super ...
分类:
移动开发 时间:
2014-09-03 12:33:06
阅读次数:
302
获取js连接参数,如下以链接:console.log(_getArgs('skin')); //结果:green/*!* _path 获取组件核心文件lhgdialog.js所在的绝对路径* _args 获取lhgdialog.js文件后的url参数组,如:lhgdialog.js?self=tru...
分类:
Web程序 时间:
2014-09-03 11:08:46
阅读次数:
475
Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or equal...
分类:
其他好文 时间:
2014-09-03 11:05:46
阅读次数:
168
note:n元线性同余方程因其编程的特殊性,一般在acm中用的很少,这里只是出于兴趣学了一下n元线性同余方程的概念:形如:(a1*x1+a2*x2+....+an*xn)%m=b%m ..................(1)当然也有很多变形,例如:a1*x1+a2*x2+...+an*x...
分类:
其他好文 时间:
2014-09-03 09:37:26
阅读次数:
207
/** 根据屏幕的方向设置扫描的方向 * @author maguang * @param parameter * @return result */- (void)showaCapture{ CGAffineTransform transform; if (self.interface...
分类:
其他好文 时间:
2014-09-03 08:22:16
阅读次数:
422