Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
react-native-picker
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ym
react-native-picker
Commits
cf10cc34
Commit
cf10cc34
authored
Oct 18, 2016
by
xwenliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix #74
parent
12adf8bb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
ios/RCTBEEPickerManager/BzwPicker.m
ios/RCTBEEPickerManager/BzwPicker.m
+12
-5
package.json
package.json
+1
-1
No files found.
ios/RCTBEEPickerManager/BzwPicker.m
View file @
cf10cc34
...
...
@@ -41,7 +41,7 @@
self
.
leftBtn
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
self
.
leftBtn
.
frame
=
CGRectMake
(
10
,
5
,
5
0
,
30
);
self
.
leftBtn
.
frame
=
CGRectMake
(
10
,
5
,
9
0
,
30
);
[
self
.
leftBtn
setTitle
:
self
.
leftStr
forState
:
UIControlStateNormal
];
[
self
.
leftBtn
setFont
:[
UIFont
systemFontOfSize
:
16
]];
self
.
leftBtn
.
contentHorizontalAlignment
=
UIControlContentHorizontalAlignmentLeft
;
...
...
@@ -55,7 +55,7 @@
self
.
rightBtn
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
self
.
rightBtn
.
frame
=
CGRectMake
(
view
.
frame
.
size
.
width
-
60
,
5
,
5
0
,
30
);
self
.
rightBtn
.
frame
=
CGRectMake
(
view
.
frame
.
size
.
width
-
100
,
5
,
9
0
,
30
);
[
self
.
rightBtn
setTitle
:
self
.
rightStr
forState
:
UIControlStateNormal
];
self
.
rightBtn
.
contentHorizontalAlignment
=
UIControlContentHorizontalAlignmentRight
;
...
...
@@ -67,7 +67,9 @@
[
self
.
rightBtn
addTarget
:
self
action
:
@selector
(
cfirmAction
)
forControlEvents
:
UIControlEventTouchUpInside
];
UILabel
*
cenLabel
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
view
.
frame
.
size
.
width
/
2
-
25
,
5
,
50
,
30
)];
UILabel
*
cenLabel
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
90
,
5
,
SCREEN_WIDTH
-
180
,
30
)];
cenLabel
.
textAlignment
=
NSTextAlignmentCenter
;
[
cenLabel
setFont
:[
UIFont
systemFontOfSize
:
16
]];
...
...
@@ -183,11 +185,16 @@
-
(
CGFloat
)
pickerView
:(
UIPickerView
*
)
pickerView
widthForComponent
:(
NSInteger
)
component
{
if
(
_Correlation
)
{
return
110
;
if
([
_numberCorrela
isEqualToString
:
@"three"
])
{
return
SCREEN_WIDTH
/
3
;
}
else
{
return
SCREEN_WIDTH
/
2
;
}
}
else
{
if
(
_noArryElementBool
)
{
//表示一个数组 特殊情况
return
110
;
return
SCREEN_WIDTH
;
}
else
{
return
SCREEN_WIDTH
/
self
.
dataDry
.
count
;
...
...
package.json
View file @
cf10cc34
{
"name"
:
"react-native-picker"
,
"version"
:
"4.0.
4
"
,
"version"
:
"4.0.
5
"
,
"description"
:
""
,
"main"
:
"index.js"
,
"scripts"
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment