先上图,大家可以看下我做的效果图。
1.我已经做了屏幕适配了,首先获取屏幕的宽和高,
CGRect rect = [[UIScreen mainScreen] bounds];
ScWidth = rect.size.width;
ScHeight = rect.size.height;
设置控件frame的时候,我尽量使用到这两个变量。
2.我使用了导航控制器来p...
分类:
其他好文 时间:
2015-01-13 23:26:23
阅读次数:
571
package com.itau.jingdong.widgets;import android.content.Context;import android.graphics.Rect;import android.util.AttributeSet;import android.view.Mot...
分类:
移动开发 时间:
2015-01-13 15:50:10
阅读次数:
211
http://blog.sina.com.cn/s/blog_76f3236b01013zmk.html分类: iphone有关 1、CGRectInsetCGRect CGRectInset ( CGRect rect, CGFloat dx, CGFloat dy ); 该结构体的应用...
分类:
其他好文 时间:
2015-01-13 12:12:10
阅读次数:
169
Latex写论文时候经常遇到字体设置的问题。Latex字体分为:\Huge\huge\LARGE\Large\large\normalsize(default)\small\footnotesize\scriptsize\tiny此命令均可以分别使用来设置字体大校另外,字体设置又分为局部设置和全局设置两种,局部设置有:%inline{\LargeThisissomelarget..
分类:
其他好文 时间:
2015-01-13 10:44:42
阅读次数:
4358
首先说明下:这种错误只在Unity3D发生,不会在打包的游戏中发生。官方解释:Camera with image effects throws error when certain game view aspect ratios are usedTo reproduce:1. Create a ca...
分类:
编程语言 时间:
2015-01-12 17:31:14
阅读次数:
220
1.得到屏幕宽高+在代码里设置应用的宽高
[java] view
plaincopy
// 屏幕矩形
mRect =new Rect(0,0,this.getWindowManager().getDefaultDisplay().getWidth(),
this.getWindowManager().getDefaultDis...
分类:
其他好文 时间:
2015-01-12 16:41:57
阅读次数:
201
Problem Description Ted has a new house with a huge window. In this big summer, Ted decides to decorate the window with some posters to prevent the...
分类:
其他好文 时间:
2015-01-11 22:46:50
阅读次数:
431
本函数用来判断类参数class是否是类型参数classinfo的子类。例子:#issubclass()
class Line:
pass
class RedLine(Line):
pass
class Rect:
pass
print(issubclass(RedLine, Line))
print(issubclass(Rect, Line))结果输出...
分类:
编程语言 时间:
2015-01-11 19:13:18
阅读次数:
181
1. Add Partition ToolPartitions act as unit of parallelism. Messages of a single topic are distributed to multiple partitions that can be stored and s...
分类:
其他好文 时间:
2015-01-10 23:37:04
阅读次数:
440
Linus大神又在rant了!这次的吐槽对象是时下很火热的并行技术(parellism),并直截了当地表示并行计算是浪费所有人时间(“The
whole “let’s parallelize” thing is a huge waste of everybody’s time.”)。大致意思是说乱序性能快、提高缓存容量、降功耗。当然笔者不打算正面讨论并行的是是非非(过于宏伟的主题),因为Lin...
分类:
其他好文 时间:
2015-01-10 16:38:03
阅读次数:
139