-(IBAction)doImage:(id)sender{ CGFloat screenWidth = [UIScreen mainScreen].bounds.size.width; NSArray *mArray = @[@"1.jpeg",@"2.jpeg",@"3.jpeg",@"4......
分类:
其他好文 时间:
2015-04-12 14:39:15
阅读次数:
132
1. 如何在XCODE中,自定义代码块? 如:strong,weak,copy, tableViewCell 等...2. 怎么理解 强引用和弱引用?3. 什么是懒加载?4. frame/bounds/center区别?5. 转变坐标系?
分类:
其他好文 时间:
2015-04-10 06:45:06
阅读次数:
130
解决方式1:self.tableView.tableHeaderView = [[UIView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, self.tableView.bounds.size.width, 0.01f)];解决方式2:self.table...
分类:
其他好文 时间:
2015-04-05 20:22:57
阅读次数:
178
private BoxCollider mCollider; // Use this for initialization void Start () { mCollider = GetComponent (); Bounds bounds = ...
分类:
编程语言 时间:
2015-04-04 16:45:18
阅读次数:
651
开发中调整View的时候的经常会遇到frame和bounds,刚开始看的时候不是很清楚,不过看了一下官方文档,frame是确定视图在父视图中的位置,和本身的大小,bounds确定可以确定子视图在当前视图中的位置,还可以改变View的大小,如果bounds确定大小,那么View的视图优先选择的boun...
分类:
移动开发 时间:
2015-04-03 13:12:44
阅读次数:
183
彻底解决数组越界 -[__NSArrayI objectAtIndex:]: index 100 beyond bounds [0 .. 1]' 错误。...
分类:
移动开发 时间:
2015-04-02 13:30:43
阅读次数:
180
//// RootViewController.m// 头部滚动展示视图// 头部滚动广告视图#define SCREEN_SIZE [UIScreen mainScreen].bounds.size#define KImageCnt 5#define KImage_H 250#import "Ro...
分类:
移动开发 时间:
2015-04-01 21:41:24
阅读次数:
164
获取状态栏的尺寸
CGRect rect;
rect=[[UIApplication sharedApplication]statusBarFrame];
获取屏幕尺寸
CGRect rect;
rect=[[UIScreen mainScreen]bounds];
CGSize size=rect.size;
CGFloat width=size.w...
分类:
其他好文 时间:
2015-03-30 09:29:48
阅读次数:
101
The file 'MemoryStream' is corrupted! Remove it and launch unity again![Position out of bounds! 20 > 16]有时候我们会遇到这个报错,然后整个U3D就崩溃了,原因是在于某些Prefabs的脚本引用丢失...
分类:
其他好文 时间:
2015-03-29 16:22:00
阅读次数:
250