我想设置Navigation Bar的背景颜色为黑色,然后所有内部颜色为白色.因此,我用了这段代码: 1 [[UINavigationBar appearance] setTitleTextAttributes: 2 [NSDictionary dictionaryWithObjects...
分类:
移动开发 时间:
2015-04-08 13:08:21
阅读次数:
160
第一步://在info.plist中添加一个字段:view controller -base status bar 设置为NO;//导航颜色[[UINavigationBar appearance] setBarTintColor:[UIColor XXXX]];[[UITableViewCell ...
分类:
移动开发 时间:
2015-04-07 11:16:52
阅读次数:
130
主题Theme就是用来设置界面UI风格,可以设置整个应用或者某个活动Activity的界面风格。在Android SDK中内置了下面的Theme,可以按标题栏Title Bar和状态栏Status Bar是否可见来分类:
[html] view
plaincopyprint?
?android:theme="@a...
分类:
移动开发 时间:
2015-04-05 09:09:12
阅读次数:
145
KyotoTycoon的php调用代码实例代码:require_once‘Net/KyotoTycoon.php‘;useNet\KyotoTycoon;$cacheManager=newKyotoTycoon(array(‘host‘=>‘localhost‘,‘port‘=>1978));//codego.net#showit$cacheManager->set(‘foo‘,‘bar‘);$value=$cacheManager->get(‘foo‘);echo$..
分类:
Web程序 时间:
2015-04-04 16:55:35
阅读次数:
151
一个函数内部还定义了另一个函数,内部函数可以调用外部函数的变量,这就是闭包。function foo(x) {var tmp = 3;function bar(y) {alert(x + y + (++tmp));}bar(10);}foo(2)上述代码输出为16,因为bar可以调用foo内的参数x...
分类:
编程语言 时间:
2015-04-03 23:41:49
阅读次数:
217
一,侧滑效果
主要涉及到三个地方
1,菜单页面
主要分为主页面和侧滑页面两部分,又分别都包含顶部bar和主要内容部分
注意:主页面内容部分,关键的菜单内容name要对应到是菜单内容的页面(在app.js中,下面会贴出)
item href的构成:1,#本页面 2,app本页面链接 3,todolist/{{menu.groupId}}列表页面链接(没有冒号)
...
分类:
其他好文 时间:
2015-04-03 21:07:01
阅读次数:
950
题目链接:Largest Rectangle in Histogram
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.
...
分类:
其他好文 时间:
2015-04-03 17:18:59
阅读次数:
128
1、from foo import bar从foo中import bar,如果bar是一个数组,那么接下来你就可以在你当前程序中直接使用名为bar的这个数组。2、import bar as foo导入bar,并重新起名为foo3、继承继承意味着导入父类的所有成员。除了继承所有父类特性外,我们还可以自...
分类:
编程语言 时间:
2015-04-03 17:16:01
阅读次数:
157