A status bar is the bar showing signal, battery and time on the top of the phone's screen. In WP8.1 we it's called status bar, but in WP8.0 it's calle...
分类:
其他好文 时间:
2014-09-09 22:49:49
阅读次数:
186
1. #define保护
所有头文件都应该使用#define 防止头文件被多重包吨(multiple inclusion),命名格式为:
___H_
为保证唯一性,头文件的命名应基亍其所在项目源代码树的全路径。例如,项目foo 中的头文件
foo/src/bar/baz.h按如下方式保护:
#ifndef FOO_BAR_BAZ_H_
#define FOO_...
分类:
编程语言 时间:
2014-09-09 21:35:40
阅读次数:
324
因为Search Bar的游标颜色和Tint颜色是统一的,如果要想将游标的颜色设置为其他颜色,则需要到textfiled内部去修改,对于字体也是同样。
实现代码:
- (void)setSearchBarTextfiled:(UISearchBar *)searchBar{
for (UIView *view in searchBar.subviews){
for (i...
分类:
移动开发 时间:
2014-09-09 18:20:09
阅读次数:
354
iOS7中修改StatusBar的显示颜色效果图如下:在iOS7中想手动修改statusBar的颜色,第一步需要做的就是在plist文件中设置View controller-based status bar appearance值为NO第二步就是在代码中实现了,如下所示://// RootView....
分类:
移动开发 时间:
2014-09-09 17:59:09
阅读次数:
241
无限滚动(Infinite Scroll)也成为自动分页、滚动分页和无限分页。常用在图片、文章或其它列表形式的网页中,用来在滚动网页的时候自动加载下一页的内容。Infinite Scroll 这款 jQuery & WordPress 无限滚动插件可以帮助你轻松实现这个效果。
分类:
Web程序 时间:
2014-09-09 15:39:18
阅读次数:
210
First open the broswer and type the following url in the address bar.
http://www.mongodb.com/
then you will view the the next page.
click the download mongodb button, and then regi...
分类:
数据库 时间:
2014-09-09 12:54:28
阅读次数:
269
Givennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histog...
分类:
其他好文 时间:
2014-09-07 17:12:05
阅读次数:
285
记得在面试腾讯实习生的时候,面试官问了我这样一道问题。//下述两种声明方式有什么不同function foo(){}; var bar = function foo(){}; 当初只知道两种声明方式一个是函数声明一个是函数表达式,具体有什么不同没能说得很好。最近正好看到这方面的书籍,就想好好...
分类:
编程语言 时间:
2014-09-06 23:49:14
阅读次数:
271
一些关于单元测试的理念: 单元测试并不能证明你的代码是正确的,只能证明你的代码是没有错误的。 Keep bar green and keep your code cool 关于JUnit的两种最基本的使用步骤 第一种方式=4.0的JUnit版本 1、 这种方式是基于注解来进行的,先要加上对应...
分类:
其他好文 时间:
2014-09-05 22:20:12
阅读次数:
298
One of the UI features of lists on Windows Phone 7 is that the "scroll bars" don't really act like traditional scroll bars; they are non-interactive a...
分类:
其他好文 时间:
2014-09-04 01:34:37
阅读次数:
187