/** ?*? 设置scrollView ?*/ - (void)setUpScrollView:(NSArray *)array { ? ? UIScrollView *scrollView = [[UIScrollView alloc]initWithFrame:self.bounds]; ? ? scrollView.delegate = self; ? ? sc...
分类:
其他好文 时间:
2015-11-03 18:06:04
阅读次数:
209
可能有人对[[UIScreen mainScreen]bounds]和[UIScreen mainScreen]applicationFrame]的区别不是很了解,其实很简单.bounds就是屏幕的全部区域,包括状态栏.而applicationFrame指的是app显示的区域,不包括状态栏.如果你讲...
分类:
移动开发 时间:
2015-11-03 00:44:19
阅读次数:
276
#import?"RootViewController.h"
#define?kScreenSize?[UIScreen?mainScreen].bounds.size
#define?kPrintDebug?NSLog(@"%s",__func__)
@interface?RootViewController?()<UIScrollViewDelegate>
{
?...
分类:
其他好文 时间:
2015-10-31 13:09:10
阅读次数:
175
博文暂时想到什么写什么,不顺理成章,不顺章成篇。先看几个概念坐标点Poit:向右侧为X轴正方向的值x,原点下侧为Y轴正方向的值y大小Size:由宽度width和高度height构成,表示一个矩形区域Rect:它有坐标点Poit和大小Size构成,表示一个区域,既有位置也有大小相对:有参照物,因参照物...
分类:
移动开发 时间:
2015-10-28 22:24:31
阅读次数:
283
searchBar.backgroundImage = [self imageWithColor:[UIColor clearColor] size:searchBar.bounds.size];//取消searchbar背景色- (UIImage *)imageWithColor:(UIColor...
分类:
移动开发 时间:
2015-10-28 17:14:12
阅读次数:
170
frame: 该view在父view坐标系统中的位置和大小。(参照点是,父亲的坐标系统)frame:(50.0,50.0,100.0,100.0);bounds:该view在本地坐标系统中的位置和大小。(参照点是,本地坐标系统,就相当于红色view自己的坐标系统,以0,0点为起点)bounds:(0...
分类:
其他好文 时间:
2015-10-27 17:35:34
阅读次数:
237
1.绘制虚线 CAShapeLayer *shapeLayer = [CAShapeLayer layer]; [shapeLayer setBounds:self.view.bounds]; [shapeLayer setPosition:self.view.center]; [shapeLaye...
分类:
其他好文 时间:
2015-10-27 15:00:35
阅读次数:
169
#import "MainViewController.h"#define kScreenWidth CGRectGetWidth([[UIScreen mainScreen] bounds])#define kScreenHeight CGRectGetHeight([[UIScreen main...
分类:
其他好文 时间:
2015-10-24 23:17:02
阅读次数:
228
感谢文顶顶感谢ashampfoundation框架 结构体Foundation框架 字符串Foundation框架 集合iOS开发UI篇 Button基础iOS开发UI篇 手写控件,frame,center和bounds属性iOS开发UI篇 transframe属性(形变)iOS开发UI篇 简单的浏...
分类:
其他好文 时间:
2015-10-24 11:16:46
阅读次数:
303
1、创建UIScrollView视图: UIScrollView *aScrollView = [[[UIScrollView alloc] initWithFrame:self.view.bounds] autorelease]; aScrollView.backgroundColor = [.....
分类:
其他好文 时间:
2015-10-23 22:43:31
阅读次数:
197