1.导航元素,导航栏模拟淘宝网的导航<!DOCTYPEhtml><html><head><title>Bootstrap实例-嵌套列</title><linkhref="./bootstrap/css/bootstrap.min.css"rel="stylesheet"><scriptsrc="./scripts/jquery.min.js"></script><sc..
分类:
其他好文 时间:
2014-10-23 20:57:15
阅读次数:
284
http://blog.csdn.net/zoeice/article/details/8068671importjava.util.Vector;importandroid.content.Context;importandroid.graphics.Bitmap;importandroid.gr...
分类:
其他好文 时间:
2014-10-23 19:17:12
阅读次数:
254
http://blog.sina.com.cn/s/blog_63578f140100w56m.htmlUITabBar* tabBar = [[UITabBaralloc]initWithFrame:CGRectMake(40,0.0,240,30)];[mainView addSubview:t...
分类:
移动开发 时间:
2014-10-23 18:58:19
阅读次数:
144
1. #define的保护
所有头文件都应该使用#define 防止头文件被多重包含(multiple inclusion),命名格式
当是:___H_
为保证唯一性,头文件的命名应基于其所在项目源代码树的全路径。例如,项目foo 中的头
文件foo/src/bar/baz.h 按如下方式保护:
#ifndef FOO_BAR_BAZ_H_
#define FOO_BAR_BAZ_H_...
分类:
编程语言 时间:
2014-10-23 12:34:25
阅读次数:
231
下面介绍精灵、动画精灵、按钮精灵、文本的常用使用方法
一、精灵相关
1.添加精灵
//创建精灵
Sprite bar_up = new Sprite(400, 0, RegionRes.getRegion(Res.BAR_UP), getVertexBufferObjectManager());
//将精灵添加至BaseEntityGroup或其子类(如:Scene、L...
分类:
其他好文 时间:
2014-10-22 18:27:15
阅读次数:
175
1 命名规则1.1 基本变量基本变量有三个:ngx_module_t 类型的 ngx_http_foo_bar_module;ngx_command_t 类型的数组 ngx_http_foo_bar_commands;ngx_http_module_t 类型的 ngx_http_foo_bar_mo...
分类:
其他好文 时间:
2014-10-22 17:41:49
阅读次数:
258
[leetcode]Given n non-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....
分类:
移动开发 时间:
2014-10-22 10:05:30
阅读次数:
248
目录(?)[-]iOS 7中默认的导航栏设置导航栏的背景颜色在导航栏中使用背景图片定制返回按钮的颜修改导航栏标题的字体修改导航栏标题为图片添加多个按钮修改状态栏的风格隐藏状态栏总结注:本文译自Customizing Navigation Bar and Status Bar in iOS 7近期,跟...
分类:
移动开发 时间:
2014-10-22 06:18:07
阅读次数:
321
Imagine that you are in a building that has exactly n floors. You can move between the floors in a lift. Let's number the floors from bottom
to top with integers from 1 to n.
Now you're on the flo...
分类:
其他好文 时间:
2014-10-22 01:07:40
阅读次数:
217
1、问题背景
在Flex中,制作一个折线图,并且给折线图的横轴和纵轴进行样式设置,具体实现步骤如下:
2、实现实例
(1)设置横轴样式和数据绑定
<mx:AxisRenderer placement="bottom" tickLength="1" tickStroke="{new Stroke(0xFF0000,1)}"
axisSt...
分类:
其他好文 时间:
2014-10-21 01:01:40
阅读次数:
217