摘要: 一些比较实用简便的抖动和震动效果和控制器跳转渐变效果,具体什么效果自己试去,只需要调用相应方法,将你的控件传进去就可以。 废话不多说,直接上代码:-(void)shakeView:(UIView*)viewToShake{ CGFloat t =2.0; CGAffineTransfor... 阅读全文
posted @ 2015-05-09 16:37 sixindev 阅读(235) 评论(1) 推荐(0) 编辑
摘要: iOS 学习资料整理http://www.jianshu.com/p/dc81698a873c中文 iOS/Mac 开发博客列表https://github.com/tangqiaoboy/iOSBlogCN 阅读全文
posted @ 2015-05-09 16:28 sixindev 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 该项目需要使用MediaPlayer框架,因此程序需要先为该项目添加MediaPalyer框架,并在上面控制器类的实现部分使用#import导入该框架的头文件程序清单:@interface FKViewController (){ MPMediaPickerController* mpc; ... 阅读全文
posted @ 2015-05-09 14:14 sixindev 阅读(574) 评论(0) 推荐(0) 编辑
摘要: 这是我们最终想要得到的效果思路在UISrollView的delegate方法- (void)scrollViewDidScroll:(UIScrollView *)scrollView中根据当前的contentOffset更新navigationBar的backgroundColor即可,so ea... 阅读全文
posted @ 2015-05-09 13:17 sixindev 阅读(444) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2015-05-09 12:02 sixindev 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 众所周知,Text Field 和 Text View 的光标颜色默认都是系统应用的那种蓝色,如图:而在实际开发中为了让视觉效果更统一,我们可能会想把那光标的颜色设置成和界面色调一致的颜色。其实在 iOS 7 以后只需要一行代码便可以轻松实现:view.tintColor = [UIColor gr... 阅读全文
posted @ 2015-05-09 11:38 sixindev 阅读(464) 评论(0) 推荐(0) 编辑
摘要: //1,轻击手势(TapGestureRecognizer)//新建tap手势UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapGe... 阅读全文
posted @ 2015-05-09 09:48 sixindev 阅读(553) 评论(0) 推荐(0) 编辑
摘要: 一.视频录制1)使用Mac系统自带的QuickTime进行屏幕录像手动打开(如下图) 详细 Mac 基础教程:如何使用 Mac 系统原生的屏幕录制功能相关快捷键option+command+n 打开录像功能ctrl+option+command+n 录音功能ctrl+command+n 录制屏... 阅读全文
posted @ 2015-05-08 19:55 sixindev 阅读(841) 评论(0) 推荐(0) 编辑
摘要: 无论在windows下,linux也好,unix也好,都可以通过 Ping命令获得当前设备的网络延迟,延迟是客户端到服务端的网络响应时间.通常延迟越低,反应速度越快这里使用了SimplePing 同时对其使用方法进行封装.导入头文件PingHelper.h调用代码: [PingHelper p... 阅读全文
posted @ 2015-05-08 17:56 sixindev 阅读(438) 评论(0) 推荐(0) 编辑
摘要: 1.系统UIImageView 多张图片组成动画/** * UIImageView 动画 * Memory-23M */-(void)gifPlay1{// NSArray *array=@[@"image0.png",@"image1.png",@"image2.png"];// ... 阅读全文
posted @ 2015-05-08 15:28 sixindev 阅读(2900) 评论(0) 推荐(0) 编辑