Better Code: Implement Pull to Refresh in your iOS Apps
How to Make an iOS Custom Pull-To-Refresh
iOS7 and UIRefreshControl in UIViewController (with UITableView)
Mac自带了的JDK6,安装在目录:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/下。
JDK7,JDK8则需要自己到Oracle官网下载安装对应的版本。自己安装的JDK默认路径为:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk
export JAVA_6_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
| #import <Foundation/Foundation.h> | |
| @interface Person : NSObject | |
| + (id)sharedInstance; | |
| @end |
在Markdown格式的文章中合适的地方插入如下代码:
{% gist 743cdf8b26ceeef49fa1 %}
其中{% gist GIST_ID %}是固定格式,你只需找到实际的Gist ID代替GIST_ID。
因为一个Gist可以有几个文件,还可以只嵌入某个Gist中的某个文件,如下:
| angular.module('myApp', ['ngRoute']) | |
| .provider('Weather', function() { | |
| var apiKey = ""; | |
| this.getUrl = function(type, ext) { | |
| return "http://api.wunderground.com/api/" + | |
| this.apiKey + "/" + type + "/q/" + | |
| ext + '.json'; | |
| }; |