码迷,mamicode.com
首页 >  
搜索关键字:UIView    ( 2905个结果
UIview阴影与圆角混合使用
UIview阴影与圆角混合使用做项目遇到一个问题就是在圆角的按键上加阴影失败了然后就有了这个日志。让UIView圆角显示很简单,只需要三行代码CALayer*layer=[avatarImageViewlayer];[layersetMasksToBounds:YES];[layersetCornerRadius:9.0];但是,如给给圆角view加阴影,传统加..
分类:其他好文   时间:2015-02-26 18:45:45    阅读次数:171
swift UI专项训练10 视图共性
讲到视图,先来看看视图的内容:    1.视图的实现:视图的基类是UIView    2.视图的Mode:尺寸填充模式,就是当尺寸超过了我们设定的值的时候采取什么适合屏幕的填充方式。    3.Tag:标记序号    视图的行为:    主要有互动和绘图,互动是指用户的一些操作,可以通过勾选选择是否采用互动和多点触控。    绘图包括:透明度、可见、清除图像内容、截断子...
分类:编程语言   时间:2015-02-26 16:42:04    阅读次数:183
自定义UIAlertView可以容纳多个按钮
Customization UIView replace UIAlertView can include a lot of Buttons,the FSAlertView would be placed between Top Bar and Bottom Bar and automatically scroll well....
分类:其他好文   时间:2015-02-26 16:39:45    阅读次数:121
iOS判断UIView是否显示在屏幕上
iOS判断UIView是否显示在屏幕上...
分类:移动开发   时间:2015-02-25 18:39:17    阅读次数:352
autolayout之后获取uiview的frame
这个只要一行代码就搞定了。详细请看:In order to get the right frame/bounds of your UIImageView after resizing, you need first ask auto-layout to update that layout usin...
分类:其他好文   时间:2015-02-25 18:29:22    阅读次数:124
UINavigation,UiView,ModalView Controller之间的关系
如果当前是个VC,那么就太简单了,直接就可以push到下一个vcAddShopViewController *controller = [[AddShopViewController alloc] init];controller.view.backgroundColor = [UIColor wh...
分类:其他好文   时间:2015-02-24 22:07:37    阅读次数:232
iOS控件——UIView的viewWithTag:(int)findTag方法描述
UIView拥有一个viewWithTag:(int)findTag方法,调用方式为[MyView viewWithTag:整形数字]该方法返回tag == findTag的控件。ios控件中允许多个控件的tag相同,该方法实现步骤如下:1.如果MyView的tag值等于需要寻找的tag值,则返回M...
分类:移动开发   时间:2015-02-23 15:27:09    阅读次数:136
ios8新特性之毛玻璃效果
直接上代码 UIView *myView = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; myView.backgroundColor = [UIColor redColor]; [self.view a...
分类:移动开发   时间:2015-02-22 10:58:28    阅读次数:139
修改UIView的默认Layer后,修改View的值会动态修改Layer的值
修改UIView的默认Layer后,修改View的值会动态修改Layer的值效果图:如上图所示,当我们修改了一个UIView的子类中的Layer内置类型时(如上图中我们将CALayer直接替换成了CAGradientLayer类),会直接作用到其内置的Layer当中.我们可以用这个特性将Layer封...
分类:其他好文   时间:2015-02-22 07:48:11    阅读次数:149
UIView 响应单击事件.
响应单击事件:blankView.userInteractionEnabled = truelet blankTap = UITapGestureRecognizer(target: self, action: "hiddenDetail")blankView.addGestureRecognize...
分类:其他好文   时间:2015-02-19 20:42:41    阅读次数:142
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!