//jquery$(document).ready(function(){ $(window).scroll(function() { $(this).scrollTop() > 10 ? $("#login-bar").slideUp(100):...
分类:
编程语言 时间:
2015-05-18 12:18:10
阅读次数:
115
苹果在iOS 8中全面使用instancetype代替idSteven Fisher:只要一个类返回自身的实例,用instancetype就有好处。@interface Foo:NSObject - (id)initWithBar:(NSInteger)bar; // initializer + (...
分类:
移动开发 时间:
2015-05-15 19:29:24
阅读次数:
120
//路径配置 require.config({ paths:{ 'echarts' : 'http://echarts.baidu.com/build/echarts', 'echarts/chart/bar' : 'http://echarts.baidu.com/build/echarts...
分类:
其他好文 时间:
2015-05-15 19:21:20
阅读次数:
177
Givennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.Fo...
分类:
移动开发 时间:
2015-05-14 18:08:31
阅读次数:
231
一,状态栏更改为白色1 在info.plist中添加一个字段:view controller -base status bar 为NO2 在需要改变状态栏颜色的ViewController中在ViewDidLoad方法中增加:[UIApplication sharedApplication] set...
分类:
移动开发 时间:
2015-05-14 15:46:27
阅读次数:
144
做一个简单的联系人列表,可以添加删除联系人,现在还没有添加头像和文字,接下来慢慢添加1、如何在UIToolBar两头出现两个按钮bar button item可是在按钮中间添加一个bar button item,然后设置按钮的属性Identifier为Flexible Space2、然后拖拽添加事件...
分类:
移动开发 时间:
2015-05-14 11:52:14
阅读次数:
243
Rust有一个特殊的属性,#[cfg],允许你一句传递给编译器的标志来编译代码。它有两种形式:
#[cfg(foo)]
#[cfg(bar = "baz")]
它们还有一些辅助形式:
#[cfg(any(unix, windows))]
#[cfg(all(unix, target_pointer_width = ...
分类:
其他好文 时间:
2015-05-14 10:05:42
阅读次数:
567
题目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.Above is a histogram where width of each ba...
分类:
其他好文 时间:
2015-05-13 19:52:46
阅读次数:
125
题目: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 his...
分类:
其他好文 时间:
2015-05-13 10:09:33
阅读次数:
156
iOS 7 button无边框,操作栏透明,控制器全屏Tab Bar 对照iOS 7 iOS 6假设使用了自己定义icon的话,能够使用UITabBarItem中的selectedImage属性来设置按下状态的图像。Toolbar对照iOS...
分类:
移动开发 时间:
2015-05-12 18:41:23
阅读次数:
167