Skip to content

Commit

Permalink
修改README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
h912545437 committed Oct 27, 2017
1 parent 9140281 commit 80d3cea
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 13 deletions.
21 changes: 15 additions & 6 deletions README.html
Original file line number Diff line number Diff line change
Expand Up @@ -1017,16 +1017,25 @@
</style><title>README</title></head><body><article class="markdown-body"><h1 id="areapickerview"><a name="user-content-areapickerview" href="#areapickerview" class="headeranchor-link" aria-hidden="true"><span class="headeranchor"></span></a>AreaPickerView</h1>
<pre><code>最简单的选择地理位置控件
</code></pre>
<h3 id="_1"><a name="user-content-_1" href="#_1" class="headeranchor-link" aria-hidden="true"><span class="headeranchor"></span></a>使用方法</h3>
<p>1 复制AreaPickerView文件夹到项目工程,确保文件夹里面内容被包含到target</p>
<p>2<br />
<pre><code>@IBAction func chooseBtnClick() {

<h2 id="_1"><a name="user-content-_1" href="#_1" class="headeranchor-link" aria-hidden="true"><span class="headeranchor"></span></a>使用方法</h2>
<h3 id="areapickerviewtarget"><a name="user-content-areapickerviewtarget" href="#areapickerviewtarget" class="headeranchor-link" aria-hidden="true"><span class="headeranchor"></span></a>复制AreaPickerView文件夹到项目工程,确保文件夹里面内容被包含到target</h3>
<h3 id="_2"><a name="user-content-_2" href="#_2" class="headeranchor-link" aria-hidden="true"><span class="headeranchor"></span></a>选择三级地址</h3>
<p><pre><code>@IBAction func chooseBtnClick() {
AreaPickView.showChooseCityView { (province, city, town) in
self.areaLabel.text = province + &quot; &quot; + city + &quot; &quot; + town
}

}

</code></pre><br />
<img alt="" height="35%" src="https://github.com/h912545437/AreaPickerView/blob/master/Images/[email protected]?raw=true" width="35%" /></p>
<h3 id="_3"><a name="user-content-_3" href="#_3" class="headeranchor-link" aria-hidden="true"><span class="headeranchor"></span></a>选择二级地址</h3>
<p><pre><code>@IBAction func chooseBtnClick() {
AreaPickView.showChooseCityView { (province, city, town) in
self.areaLabel.text = province + &quot; &quot; + city + &quot; &quot; + town
}

}

</code></pre></p></article></body></html>
</code></pre><br />
<img alt="" height="35%" src="https://github.com/h912545437/AreaPickerView/blob/master/Images/[email protected]?raw=true" width="35%" /></p></article></body></html>
24 changes: 17 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,31 @@
最简单的选择地理位置控件


###使用方法
##使用方法


1 复制AreaPickerView文件夹到项目工程,确保文件夹里面内容被包含到target
###复制AreaPickerView文件夹到项目工程,确保文件夹里面内容被包含到target

2
###选择三级地址
```
@IBAction func chooseBtnClick() {
AreaPickView.showChooseCityView { (province, city, town) in
self.areaLabel.text = province + " " + city + " " + town
AreaPickView.showChooseCityView { (province, city, town) in
self.areaLabel.text = province + " " + city + " " + town
}
}
```
![](https://github.com/h912545437/AreaPickerView/blob/master/Images/[email protected]?raw=true){:height="35%" width="35%"}

###选择二级地址
```
@IBAction func chooseBtnClick() {
AreaPickView.showChooseCityView { (province, city, town) in
self.areaLabel.text = province + " " + city + " " + town
}
}
```
![](https://github.com/h912545437/AreaPickerView/blob/master/Images/[email protected]?raw=true){:height="35%" width="35%"}

0 comments on commit 80d3cea

Please sign in to comment.