1.图片头像切成圆【不是半径的话 不是正圆】
self.imgvHead.clipsToBounds =
YES;
self.imgvHead.layer.cornerRadius
= self.imgvHead.bounds.size.height/2;
self.imgvHead.layer.borderWidth
= 0.5f;
...
分类:
其他好文 时间:
2015-08-05 12:59:04
阅读次数:
114
define MAX_ARRAY_DIM 8//假设数组维数的最大值为8typedef int ElemType;struct Array
{
ElemType * base;//数组元素基址,由InitArray分配
int dim;//数组维数
int * bounds;//数组维界基址,由InitArray分配
int * constants;//数组...
分类:
编程语言 时间:
2015-08-05 10:41:58
阅读次数:
119
1.屏幕尺寸#define screenWidth [UIScreen mainScreen].bounds.size.width // 屏幕宽度#define screenHeight [UIScreen mainScreen].bounds.size.height // 屏幕高度#define....
分类:
其他好文 时间:
2015-08-04 13:27:57
阅读次数:
105
一、各款机型width & height(曾经遇到过有导航栏情况下打印mainScreen和打印self.view的尺寸不同...后期补充)****************[UIScreenmainScreen].bounds.size4sheight = 480 / width = 3205she...
分类:
其他好文 时间:
2015-08-04 13:16:05
阅读次数:
79
参考:http://blog.csdn.net/nseven/article/details/8288603
之前用的默认的ubuntu12.04默认的gcc编译源代码,结果在用gdb调试的时候出现了cannot find the bounds of the current ...的错误
查看网上的资料,可能的原因是gcc版本应该用gcc4.4 现在将ubuntu版本改变再次尝试。
1....
分类:
系统相关 时间:
2015-08-01 17:25:57
阅读次数:
152
iOS 中有两个表达位置和大小的属性,frame bounds 那么他们两个有什么区别了?
frame指的是:该view在父view坐标系统中的位置和大小。(参照点是父亲的坐标系统)
bounds指的是:该view在本身坐标系统中 的位置和大小。(参照点是本身坐标系统)
我们用下边一图来表述可能更加清楚
我们将比较大的一个view 叫做Vie...
分类:
移动开发 时间:
2015-07-31 13:10:22
阅读次数:
185
王家林亲授《DT大数据梦工厂》大数据实战视频 Scala 深入浅出实战经典(1-64讲)完整视频、PPT、代码下载:百度云盘:http://pan.baidu.com/s/1c0noOt6 腾讯微云:http://url.cn/TnGbdC 360云盘:http://yunpan.cn/cQ4c2U...
分类:
其他好文 时间:
2015-07-31 01:01:30
阅读次数:
178
class Graph{public: Graph(void); virtual ~Graph(void);public: virtual void bounds(const Rect&); virtual void draw(void); virtual void i...
分类:
其他好文 时间:
2015-07-30 19:23:58
阅读次数:
105
王家林亲授《DT大数据梦工厂》大数据实战视频 Scala 深入浅出实战经典(1-64讲)完整视频、PPT、代码下载:百度云盘:http://pan.baidu.com/s/1c0noOt6 腾讯微云:http://url.cn/TnGbdC 360云盘:http://yunpan.cn/cQ4c2U...
分类:
其他好文 时间:
2015-07-29 22:51:05
阅读次数:
187
UIViewUIWindow创建windowwindow就是窗口,使用UIWindow类来表示窗口,一般情况下一个应用程序只创建一个UIWindow对象 self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// 背景色
self.window.backgroundColor...
分类:
其他好文 时间:
2015-07-29 21:23:09
阅读次数:
111