 
 	 - returns: 截取的string
 	 */
-	subscript(r: Range<Int>) -> String {
+	public subscript(r: Range<Int>) -> String {
 		get {
 			let startIndex = self.startIndex.advancedBy(r.startIndex)
 			let endIndex = self.startIndex.advancedBy(r.endIndex)

	}
}

extension String {

	/**
	 截取string,例:"abc"[0...1]

		return Array<Range<Index>>()
	}
}

public extension UIView {
	public var autoWidth: CGFloat {
		return self.systemLayoutSizeFittingSize(UILayoutFittingCompressedSize).width
	}
	public var autoHeight: CGFloat {
		return self.systemLayoutSizeFittingSize(UILayoutFittingCompressedSize).height
	}
}