if (IS_IOS7()) { // NavigationBar 颜色
[[UINavigationBar appearance] setBarTintColor:HexColor(0xffffff)]; } else {
self.nav...
分类:
移动开发 时间:
2014-06-06 15:48:39
阅读次数:
283
# -*- coding: utf-8 -*-"""Created on Wed Jun 04
01:21:31 2014@author: Administrator"""class Analysis: def
processExamResults(self): passes =...
分类:
编程语言 时间:
2014-06-06 13:03:57
阅读次数:
354
{一}PHP中this,self,parent的区别之一this篇面向对象编程(OOP,Object
OrientedProgramming)现已经成为编程人员的一项基本技能。利用OOP的思想进行PHP的高级编程,对于提高PHP编程能力和规划web开发构架都是很有意义的。PHP5经过重写后,对OOP...
分类:
Web程序 时间:
2014-06-06 12:39:18
阅读次数:
303
```cppenum Iter: Int{ case s1=0, s2, s3, s4
mutating func next(){ if self == .s4 { self = .s1 return } ...
分类:
其他好文 时间:
2014-06-06 09:07:38
阅读次数:
215
自定义webview背景色 重点是把webview弄成透明的
然后把self.view的背景调色即可UIWebview 背景透明处理让 UIWebView
背景透明需要以下设置web_about.backgroundColor = [UIColor clearColor];web_about.opa...
分类:
Web程序 时间:
2014-06-04 17:23:59
阅读次数:
291
在Popovercontroller中显示tableView,用多少cell,就显示多少cell,去掉多余空白的cell在控制器中设置-
(void)viewDidLoad{ [super viewDidLoad];//self.contentSizeForViewInPopover =
CGSiz...
分类:
其他好文 时间:
2014-06-04 15:47:19
阅读次数:
190
在ios的UI中UITableView是个常用且强大的控件基本使用:1>设置代理,一般把控制器设为代理:self.tableView.delegate =
self;2>遵守代理的协议且实现方法 协议:代理的协议:UITableViewDelegate;资源的协议:UITableViewSourc....
分类:
其他好文 时间:
2014-06-04 15:39:23
阅读次数:
285
1、Android设备屏幕尺寸分布
首先看一下各种屏幕的尺寸和屏幕密度划分,下图是各种屏幕尺寸对应的范围:
从上图可以看出,对应normal尺寸的屏幕范围集中在常见的3到5寸屏之间,large尺寸对应的就主要是5到7寸的nottpad之类的设备,例如三星的Note和Nexus7平板等,再网上走就是平板电脑了。接下来是屏幕密度(dpi),需要说明的时,平时所说的屏幕分辨率其实不能...
分类:
移动开发 时间:
2014-06-04 13:43:01
阅读次数:
459
-(void)touchesBegan:(NSSet *)touches
withEvent:(UIEvent *)event{[self.view endEditing:YES];}把这个复制到视图对应的.m文件中,即可
分类:
其他好文 时间:
2014-06-02 19:06:40
阅读次数:
219
Te Regular Expression literal also creates new
objects in ECMA Script 5. And one last note that calling RegExp() without new(as
a function, not as a c...
分类:
编程语言 时间:
2014-06-02 15:50:52
阅读次数:
280