//// ViewController.m// ObserverTrampoline//// Created by Rob Napier on 9/7/11.// Copyright (c) 2011 __MyCompanyName__. All rights reserved.//#imp...
分类:
移动开发 时间:
2015-09-09 19:32:30
阅读次数:
190
[btn setImage:imgNor forState:UIControlStateNormal]; [btn setImage:imgSel forState:UIControlStateSelected]; [btn setTitle:[arrLa...
分类:
移动开发 时间:
2015-09-09 19:30:29
阅读次数:
626
声明:Demo并不是有本人所写,本人只是总结在这里工程源码:RippleDemo.zip----------------------------------------------------总纲1. 没有边界的Ripple(Ripple With No Mask)2. 用颜色作为Mask的Ripp...
分类:
移动开发 时间:
2015-09-09 19:30:18
阅读次数:
603
UIPageController UIPageController控件主要用来实现视图分页,通常会和UIScrollView配合使用创建 UIPageControl *page=[[UIPageControl alloc] init];设置frame pagel.frame = CGRectM...
分类:
移动开发 时间:
2015-09-09 19:28:53
阅读次数:
176
转自:http://blog.sina.com.cn/s/blog_78e3ae430100pxba.htmlandroid提供了一种新的类型:Parcel。本类被用作封装数据的容器,封装后的数据可以通过Intent或IPC传递。 除了基本类型以外,只有实现了Parcelable接口的类才能被放入P...
分类:
移动开发 时间:
2015-09-09 19:22:20
阅读次数:
166
先说说故事发生的场景,举个栗子如下图:A是遮罩层,B是正常的DOM,C是B上的某个元素,这里是链接。场景是点击A的时候A消失,结果点到了C,页面发生了跳转,这显然不是咱想要的~下面我们来监测点击事件:var div1 = document.getElementById("div1");var div...
分类:
移动开发 时间:
2015-09-09 19:18:27
阅读次数:
182
CABasicAnimation 基础动画#define radin(angle) (M_PI*(angle)/180) //定义自己需要的弧度@interface ViewController ()@property(nonatomic,strong)CALayer *layer;@prop...
分类:
移动开发 时间:
2015-09-09 19:17:30
阅读次数:
236
点击返回顶部,三种方法1、这个方法jQuery使用正常,zepto使用没有动画//zepto没有动画$("body").animate({scrollTop: 0}, 500)//zepto使用$("body").scrollTop(0);2、这个方法jQuery使用正常,zepto使用没有动画wi...
分类:
移动开发 时间:
2015-09-09 19:15:19
阅读次数:
2186
如果代码中有这样的log: Log.e("Foo", "error in foo"); Log.d("Foo", "debug in foo"); 打开终端: 如果logcat的命令如下: adb logcat -s Foo:D 则打印:error in foo debug in foo 如果log...
分类:
移动开发 时间:
2015-09-09 19:13:54
阅读次数:
154
刚才遇到一个问题,现在在这就当纪录一下,大家有遇到的能快速找到原因,分享一下啊。在APP中,需要用户登录后才能使用,所以我通过更改APP的[UIApplicationsharedApplication].keyWindow.rootViewController来控制界面的跳转。在使用过程中出现如下问...
分类:
移动开发 时间:
2015-09-09 19:12:43
阅读次数:
160
//// UIColor+Random.h// 饼图//// Created by YaguangZhu on 15/9/9.// Copyright (c) 2015年 YaguangZhu. All rights reserved.//#import @interface UIColor...
分类:
移动开发 时间:
2015-09-09 19:01:55
阅读次数:
180
Android WebViews 这一节展示在一个更大的Android应用程序里如何嵌入一个Cordova-enabled WebView 组件。 有关这些组件之间如果能沟通的详细说明,请看应用程序插件。 如果你对Android不熟悉,那在你尝试更多嵌入一个WebView的不寻常开发选择之前,你.....
分类:
移动开发 时间:
2015-09-09 19:00:48
阅读次数:
216
With Android 5.0 Lollipop, Google is adding true multi-user support for tablets and smartphones alike.When Google releasedAndroid 4.2it included multi...
分类:
移动开发 时间:
2015-09-09 19:00:12
阅读次数:
247
由于在原来的ADT的Eclipse环境中,用ndk_build工具生成了相应的各个.so库文件之后,eclipse工具就会自动把这些库导入到apk中。而Android Studio目前为止(0.86版本)还无法做到那么自动,但是我们可以通过以下方式进行。首先在Android Studio工程的app...
分类:
移动开发 时间:
2015-09-09 18:58:05
阅读次数:
170
读者须知:本篇文章中最靠谱的是第三种方式,最近有读者反映第三种方式也不行了,下面提供一点其他途径的开源镜像站点:国内高校的开源镜像站中国科学技术大学(debian.ustc.edu.cn)上海交通大学(ftp.stju.edu.cn)大连理工大学(mirror.dlut.edu.cn)北京交通大学(...
分类:
移动开发 时间:
2015-09-09 18:55:54
阅读次数:
159
今天使用Cocopods,创建项目,集成第三方库,然后使用Cornerstone上传到svn的时候,svn报错。提示文件有问题,找不到解决办法。尝试了下面的方法。1.先让项目创建Podfile文件,然后上传到SVN(Podfile文件上传),没有报错。2.checkOut项目,然后pod insta...
分类:
移动开发 时间:
2015-09-09 18:54:36
阅读次数:
187
https://developer.apple.com/library/ios/documentation/CoreFoundation/Conceptual/CFDesignConcepts/Articles/tollFreeBridgedTypes.htmltoll-free bridge本质上...
分类:
移动开发 时间:
2015-09-09 18:52:29
阅读次数:
294