IOS 点击按钮 光环 冲击波效果】的更多相关文章

UIBezierPath * path = [UIBezierPath bezierPathWithArcCenter:CGPointMake(0, 0) radius:ROUND_WIDTH/2 -3 startAngle:0 endAngle:2*M_PI clockwise:YES]; CAShapeLayer * layer = [CAShapeLayer layer]; layer.path = path.CGPath; layer.fillColor = [[UIColor clea…
原文链接:http://www.cnblogs.com/steed-zgf/archive/2012/02/03/2336984.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.or…
浏览器宿主的全局环境中,this指的是window对象. <script type="text/javascript"> console.log(this === window); //true </script>  浏览器中在全局环境下,使用var声明变量其实就是赋值给this或window. 除了DOM的事件回调或者提供了执行上下文(后面会提到)的情况,函数正常被调用(不带new)时,里面的this指向的是全局作用域. 下面用JavaScript中的this…
如图所示,需要实现点击一个按钮,跳转到指定网页: -(void)pushBtnCellClickDeleate{ NSLog(@"跳转"); //在APP内部打开指定网页 UIWebView *myWebView = [[UIWebView alloc] initWithFrame:CGRectMake(, , [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height)]; NSU…
话不多说,直接上图和代码:…
UIPasteboard使用 基本使用: - (void)copyClick { UIPasteboard *pab = [UIPasteboard generalPasteboard]; pab.string = yqmLabel.text; if (pab == nil) { [MBProgressHUD showError:@"复制失败"]; } else { [MBProgressHUD showSuccess:@"已复制"]; } } 可以赋值的属性: @…
原因: 用CGAffineTransformMakeRotation,每次旋转都要在之前最后的角度基础之上再转才有效果. - (void)clickAction: (UIButton *)button { NSLog(@"点击"); if (!button.selected) { button.transform = CGAffineTransformMakeRotation(M_PI); } else { button.transform = CGAffineTransformIde…
在ios端,safari浏览器上触发click事件有300ms的延迟响应,为touch添加的样式会和click冲突而出现闪烁问题 在safari中触摸事件的相应顺序如下: touchstart --> touchmove --> touchend --> click(300ms) 此时可试用以下样式取消click事件的默认样式来消除页面闪烁问题 *{ -webkit-tap-highlight-color:rgba(0,0,0,0); } (顺便提一下,300ms的延迟主要是用于判断用户…
@interface CaptureViewController () @property (nonatomic, strong) UIImageView *backgrounView; //控制器背景 @property (nonatomic, strong) UIView *captureView; //整个半透明图层 @property (nonatomic, strong) UIView *alertview; // 图层中间的view @property (nonatomic, str…
<head><script type="text/javascript">function change_div(id){  if (id == 'gsywly' )  {     document.getElementById("gsgs").style.display = 'none' ;     document.getElementById("gsywly").style.display = 'block' ;  …