码迷,mamicode.com
首页 >  
搜索关键字:uiview 的旋转和缩放    ( 2907个结果
关于UIView的userInteractionEnabled属性
如果父视图为ParentView包含一个Button,如果再ParentView上添加子视图ChildView,且ChildView盖住了 Button,那么Button就得到不响应了,为了让Button响应,可以设置ChildView的userInteractionEnabled = NO;最近被...
分类:其他好文   时间:2014-07-16 23:22:52    阅读次数:196
UIApplicationDelegate详解
每 个iP每 个iPhone应用程序都有一个UIApplication,UIApplication是iPhone应用程序的开始并且负责初始化并显示 UIWindow,并负责加载应用程序的第一个UIView到UIWindow窗体中。UIApplication的另一个任务是帮助管理应用程序的生命 周期,...
分类:移动开发   时间:2014-06-27 22:02:50    阅读次数:217
UIView 转 UIImage
这个方法很实用,特别是在做水印相机得时候。。。- (UIImage*) imageWithUIView:(UIView*) view{ // 创建一个bitmap的context // 并把它设置成为当前正在使用的context UIGraphicsBeginImageCo...
分类:其他好文   时间:2014-06-27 21:54:28    阅读次数:228
关于一些点击事件
取消第一响应者————回收键盘UIImageView响应点击事件UIImageView响应点击事件给View添加点击事件 UIView *view = [[UIControl alloc]init]; view.backgroundColor = [UIColor redColor]; ...
分类:其他好文   时间:2014-06-27 18:33:45    阅读次数:165
模拟Push和Pop动作
//利用CATransition来作模拟//模拟Push- (void)pushView:(UIView *)pushView inView:(UIView *)inView{ CATransition *animation = [CATransition animation]; ani...
分类:其他好文   时间:2014-06-27 14:41:15    阅读次数:178
UIView-(frame,center,bounds,tag,transform)用法
frame:表示控件的位置和尺寸(以父控件的左上角为坐标原点(0,0))可以调整控件的大小和位置1 CGRect frame = _btn.frame;2 frame.origin.y -= 50;3 _btn.frame = frame;center:表示控件的中点(以父控件的左上角为坐标原点)可...
分类:其他好文   时间:2014-06-26 15:04:54    阅读次数:189
Class hierarchy of UIResponder as well as subclasses of UIView and UIControl
When you were dragging in your label and your button to this view, you were adding them as subviews.By doing this programmatically you can see what go...
分类:其他好文   时间:2014-06-25 20:56:07    阅读次数:521
IOS开发之触摸背景关闭键盘的代码实现
直接上代码:// 触摸背景,关闭键盘- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ UITouch *touch = [touches anyObject]; UIView *view = (UIView...
分类:移动开发   时间:2014-06-24 23:11:16    阅读次数:268
contentSize、contentInset和contentOffset区别【转】
这几个都是在ios程序中,经常会注意到的一些小细节,能否真正了解这些,对写ios程序也有很大的好处。frame 是UIView中表示此view的一个矩形面积,包括了view在它的superview中的一些几何上的标识。有起始坐标,也就是origin(CGPoint)和这个矩形面积的宽(width)和...
分类:其他好文   时间:2014-06-24 18:07:33    阅读次数:171
UITableView中headerView视察滚动的简单实现
简单思路:实例一个UIScrollView,在scrollView上添加两个UIView, 为scrollView添加观察者,观察scrollView的contentOffset属性.当偏移量改变时,改变UIView视图的坐标.示例代码:@interface RootViewController (...
分类:其他好文   时间:2014-06-24 13:35:15    阅读次数:297
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!