 	}
 }
 
-extension String {
+public extension String {
 
 	/**
 	 截取string,例:"abc"[0...1]


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

		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
	}
}