码迷,mamicode.com
首页 >  
搜索关键字:frame    ( 7319个结果
iOS8 UIView之autoresizingMask 的使用
UIView的autoresizingMask属性 是用来适应父视图的变化(根据父视图的变化进而调整自身Frame属性)。@property(nonatomic) BOOL autoresizesSubviews; // default is YES. if set, subviews are ad...
分类:移动开发   时间:2015-06-12 00:27:16    阅读次数:230
js如何判断是否在iframe中及防止网页被别站用 iframe嵌套 (Load denied by X-Frame-Options)
1. js如何判断是否在iframe中Js代码//方式一if(self.frameElement&&self.frameElement.tagName=="IFRAME"){alert('在iframe中');}//方式二if(window.frames.length!=parent.frames....
分类:Web程序   时间:2015-06-11 12:41:18    阅读次数:168
Hardware Scaler for Performance and Efficiency
If you develop a performance-intensive 3D game, you’re always looking for ways to give users richer graphics, higher frame rates, and better responsiveness. You also want to conserve the user’s b...
分类:其他好文   时间:2015-06-10 17:32:13    阅读次数:149
导航栏+状态栏+标签栏高度获取方法
导航栏高度获取1 self.navigationController.navigationBar.frame.size.height状态栏高度获取1 [UIApplication sharedApplication].statusBarFrame.size.height标签栏高度获取1 tabVie...
分类:其他好文   时间:2015-06-10 06:31:28    阅读次数:2022
iOS Autolayout情况下,ViewController嵌套时,childViewController的Frame异常问题
最近项目中,使用Storyboard、AutoLayout开发,某个ViewController中嵌套了多个子ViewController,结果在将其添加到父ViewController时,出现坐标异常问题;追踪代码发现,这是由于AutoLayout状态下,获取Frame数据不准确(或时机不对)导致的,网上找了许久,取长补短,搞到了解决办法,具体如下: 分析: AutoLayout状态...
分类:移动开发   时间:2015-06-09 20:11:38    阅读次数:157
iOS 的各种动画
最普通动画://开始动画[UIView beginAnimations:nil context:nil];//设定动画持续时间[UIView setAnimationDuration:2];//动画的内容frame.origin.x += 150;[img setFrame:frame];//动画结...
分类:移动开发   时间:2015-06-09 19:54:28    阅读次数:94
iOS中修改导航栏高度
有时候需要修改导航栏的高度,可以这样修改:         UINavigationBar *bar = [self.navigationController navigationBar];     CGFloat navBarHeight = 30.0f;     CGRect rect = CGRectMake(0, 20, self.window.frame.size...
分类:移动开发   时间:2015-06-09 17:34:55    阅读次数:129
selenium向富文本框填写内容的几种方式
富文本框如果是iframe,则用下1.先跳转到irame,dr.switchTo().frame(wtext);然后用jsJavascriptExecutor jsExecutor = (JavascriptExecutor) dr;jsExecutor.executeScript("argumen...
分类:其他好文   时间:2015-06-09 13:22:59    阅读次数:370
添加UIVisualEffectView
添加UIVisualEffectViewby 伍雪颖let bgView : UIImageView = UIImageView(image: UIImage(named: "1.jpg")) bgView.frame = self.view.bounds self.view.addSubview(bgView)let blurEffect: UIBlurEffect = UIBlurEffect(...
分类:其他好文   时间:2015-06-09 11:49:28    阅读次数:107
UIButton 设置圆角 边框颜色 点击回调方法
UIButton *signBtn = [UIButton buttonWithType:UIButtonTypeCustom]; signBtn.frame = CGRectMake(0, 0, 80, 40); [signBtn.layer setMasksToBounds:YES]; [signBtn.layer setCornerRadius:10.0]; //设置矩形四...
分类:其他好文   时间:2015-06-09 09:59:01    阅读次数:139
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!