Apparently, in addition to setting the status bar to not be hidden, you also have to reset its style
after the camera view makes it disappear. Try this:
[[UIApplication sharedApplication] setStat...
分类:
移动开发 时间:
2015-07-30 00:46:42
阅读次数:
260
redis服务很多人都在用先看如何安装redis。下面是从官网拿来的,不多讲。$wgethttp://download.redis.io/releases/redis-3.0.3.tar.gz
$tarxzfredis-3.0.3.tar.gz
$cdredis-3.0.3
$make
src/redis-server
$src/redis-cli
redis>setfoobar
OK
redis>getfoo
"bar"默认的配..
分类:
其他好文 时间:
2015-07-29 19:40:23
阅读次数:
219
1.如果目标文件的后缀是make所识别的,那么"$*"就是除了后缀的那一部分。makefile文件如下1 all: foo.o2 echo final3 4 foo.o: bar.c5 echo $*bar.c文件存在,执行make后的结果:echo foofooec...
分类:
其他好文 时间:
2015-07-28 20:48:39
阅读次数:
78
采用锚点进行页面中的跳转的确很方便,但是要想增加网页的效果,可以使用jquery中的animate,实现滚动的一个动作,慢慢的滚动到你想跳转到的位置,从而看起来会非常高大上。滚动到顶部:$('.scroll_top').click(function(){$('html,body').animate(...
分类:
Web程序 时间:
2015-07-28 17:31:07
阅读次数:
122
第一步://在info.plist中添加一个字段:view controller -base status bar 设置为NO;//导航颜色[[UINavigationBar appearance] setBarTintColor:[UIColor XXXX]];[[UITableViewCell ...
分类:
移动开发 时间:
2015-07-28 14:32:14
阅读次数:
181
我们到处都能看到进度条的应用,我们下载拷贝个文件,下载个电影等总能看到进度条的影子,如图:
进度条的常用操作无非设置其比例或者获取其比例。
进度条的创建:
GtkWidget *gtk_progress_bar_new(void);
返回值:进度条指针
设置进度条显示的进度比例:
void gtk_progress_bar...
分类:
其他好文 时间:
2015-07-28 13:02:20
阅读次数:
176
JQuery方法:$(window).bind('scroll',function(){ // var len = $(this).scrollTop() if($('body').scrollTop() 10){ layer.style.display = 'block'; } else...
分类:
其他好文 时间:
2015-07-28 12:22:51
阅读次数:
187
Storyboard
界面上选中UIViewController,最右边Simulated Metrics找到 Status Bar 设定成 None
ViewController
iOS 6通过[UIApplication sharedApplication] 取得app的单例,然后调用setStatusBarHidden方法隐藏 Status Bar。
iOS 7
...
分类:
其他好文 时间:
2015-07-27 16:26:30
阅读次数:
140
Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"DefaultDomainName"="HI""DefaultUserName...
实现过程当页面滚动时(监听scroll事件),浏览器滚动条处于最顶部时,隐藏“返回顶部”按钮,当滚动条继续向下滚动时,动态计算出当前可视窗口的高度-按钮高度-按钮距浏览器下边缘高度得到的值,如果这个值大于某个特定的数字时,显示“返回顶部”按钮,否则隐藏。然后,当单击“返回顶部”按钮时,其实应该是一个...
分类:
其他好文 时间:
2015-07-27 12:33:58
阅读次数:
116