Skip to content

Commit 217ec92

Browse files
authored
Update README.md
1 parent 67c4627 commit 217ec92

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
> Written with [StackEdit](https://stackedit.io/).
55
# SelectMultipleButtons
6-
A grouped buttons supporting multiple/radio selection and automatic layout by building with swift.
6+
A grouped buttons supporting multiple/radio selection and automatic layout by building with swift. https://github.com/danceyoung/react-native-selectmultiple-button for React Native.
77
## Demo (captured by GIPHY CAPTURE)
88
![
99
](https://github.com/danceyoung/selectmultiplebuttons/blob/master/demo/selectmultiplebuttons-demo.gif?raw=true)
@@ -17,7 +17,7 @@ Edit your podfile
1717
## Instruction
1818
You must adopt the `SelectMultipleButtonsDelegate` protocol. The protocol likes UITableViewDelegate and UITableDatasource, providing information that SelectMultipleButtons need to construct buttons and manage button selection...
1919

20-
_// how many buttons are returnd_
20+
_// how many buttons are returned_
2121

2222
func numberOf(selectMultipleButtons: SelectMultipleButtons) -> Int
2323

@@ -27,7 +27,7 @@ _// how many buttons are returnd_
2727

2828
_//set maximumNumber selected_
2929

30-
_//default you can all select buttons_
30+
_//default you can select all buttons_
3131

3232
_//if you set the value is 1, the selectmultiplebuttons will present radio selecting_
3333

@@ -53,14 +53,15 @@ Import modules
5353
import selectmultiplebuttons
5454

5555
Init a selectMultipleButtons
56+
5657
_//width is the maxwidth for SelectMultipleButtons view_
5758

5859
_//no care height, after performing SelectMultipleButtons.load(), the height is calced automaticly._
5960

6061
_// you must perform SelectMultipleButtons.load() befor adding it to parent view._
6162

6263
let selectMultipleButtons1 = SelectMultipleButtons.init(frame: CGRect.init(x: 0, y: tip1.frame.origin.y + tip1.frame.height, width: view.frame.width, height: 0))
63-
selectMultipleButtons1.delegate = **self**
64+
selectMultipleButtons1.delegate = self
6465
selectMultipleButtons1.load()
6566
view.addSubview(selectMultipleButtons1)
6667

0 commit comments

Comments
 (0)