码迷,mamicode.com
首页 >  
搜索关键字:opaque    ( 117个结果
UIWebView解决加载页面时背景一片空白问题
UIWebView加载过程中,在页面没有加载完毕前,会显示一片空白。为解决这个问题,方法如下: 方法1、让UIWebView背景透明。 webView.backgroundColor = [UIColor clearColor]; webView.opaque = NO; [webView setBackgroundColor:[UIColor colorWithPatternImag...
分类:Web程序   时间:2015-04-13 00:25:57    阅读次数:140
(转) IOS用CGContextRef画各种图形(文字、圆、直线、弧线、矩形、扇形、椭圆、三角形、圆角矩形、贝塞尔曲线、图片)
首先了解一下CGContextRef:An opaque type that represents a Quartz 2D drawing environment.Graphics Context是图形上下文,可以将其理解为一块画布,我们可以在上面进行绘画操作,绘制完成后,将画布放到我们的view中...
分类:移动开发   时间:2015-04-08 10:27:06    阅读次数:204
柴郡猫技术--C++中的PIMPL设计模式
另一个 Blog 地址:http://insaneguy.me 原文链接:http://insaneguy.me/2015/04/05/cheshire_cat_in_cpp-pimpl_idiom/C++ 中的“柴郡猫技术”(Cheshire Cat Idiom),又称为 PIMPL(Pointer to IMPLementation) ,Opaque Pointer 等,是一种在类中只定义接口...
分类:编程语言   时间:2015-04-05 23:41:07    阅读次数:429
iOS UITableviewCell优化
iOS UITableviewCell优化0.Cell必须重用1.把Cell的opaque设置为NO2.多种样式的Cell分开写3.尽量提前初始化好要用到的UI不要每次更新页面的时候都要创建和删除4.尽量定高,如果动态算高度尽量不要用到UIKit的东西计算5.如果直接用IB加载的话尽量用- (voi...
分类:移动开发   时间:2015-03-20 12:34:42    阅读次数:166
ios 类的内部结构
1. Class 和 Object 的定义/// An opaque type that represents an Objective-C class.typedef struct objc_class *Class; /// Represents an instance of a class.s...
分类:移动开发   时间:2015-02-28 12:43:53    阅读次数:159
关于mousewheel事件
flash在wmode为opaque或transparent时,AS编写的鼠标滚轮事件失效。在此情况下,只能通过外部的JS实现事件绑定。我的实现代码如下:(已通过firefox,chrome,IE8测试)functionregistMousewheel(id){ function_onmousewheel(e){ vartarget=e.srcElement||e.target; if(mousewhe..
分类:其他好文   时间:2015-02-26 11:51:27    阅读次数:163
css 其他技巧
如何让层在falsh上显示?方法:设置flash的wmode值为transparent或opaque如何使用标准的方法在页面上插入flash?方法:至于flash的宽高可以在css里设置如何在点文字时也选中复选框或单选框?方法1:选项一选项二选项一选项二该方式所有主流浏览器都支持方法2:选项一选项二...
分类:Web程序   时间:2015-01-04 11:22:29    阅读次数:225
Android xml资源文件中@的含义
一.@代表引用资源1.引用自定义资源。格式:@[package:]type/nameandroid:text="@string/hello"2.引用系统资源。格式:@android:type/name android:textColor="@android:color/opaque_red"注意:其...
分类:移动开发   时间:2014-12-25 16:22:19    阅读次数:237
UIView TO UIImage
+ (UIImage *) imageWithView:(UIView *)view { UIGraphicsBeginImageContextWithOptions(view.bounds.size, view.opaque, 0.0f); [view drawViewHierarchyInRect:view.bounds afterScreenUpdates:NO]; ...
分类:其他好文   时间:2014-12-19 20:49:11    阅读次数:153
在iOS上使用OpenGL ES渲染YUV
1)创建OpenGL context [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2]; 2)layer设置成不透明 _eaglLayer = (CAEAGLLayer*) self.layer; _eaglLayer.opaque = YES; 3)创建YUV texture glGenTextu...
分类:移动开发   时间:2014-12-04 12:20:04    阅读次数:492
117条   上一页 1 ... 8 9 10 11 12 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!