为UIButton添加发光效果 - iOS [英] Adding glow effect to UIButton - iOS

查看:804
本文介绍了为UIButton添加发光效果 - iOS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个UIButton是一个标志。这个徽标按钮会永远发光,但会在触摸时停止发光。它就像一个发光的动画。

I have an UIButton which is a logo. This logo button will glow on forever but will stop glowing on touch.It is like a glowing animation.

有什么建议吗?

  Undefined symbols for architecture i386:
 "_OBJC_CLASS_$_CABasicAnimation", referenced from:
 objc-class-ref in UIView+Glow.o
 "_OBJC_CLASS_$_CAMediaTimingFunction", referenced from:
  objc-class-ref in UIView+Glow.o
  "_kCAMediaTimingFunctionEaseInEaseOut", referenced from:
  -[UIView(Glow) startGlowing] in UIView+Glow.o
   ld: symbol(s) not found for architecture i386
   clang: error: linker command failed with exit code 1 (use -v to see invocation)


推荐答案

我建议您使用秘密实验室制作的 UIView的Glow类别

I suggest you use the Glow Category of UIView made by secret lab.

示例可用此处

这篇关于为UIButton添加发光效果 - iOS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆