Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
enzevalos_iphone_workspace
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
enzevalos
enzevalos_iphone_workspace
Commits
932580f2
Commit
932580f2
authored
8 years ago
by
Joscha
Browse files
Options
Downloads
Patches
Plain Diff
work in progress
parent
babe5581
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Pods/VENTokenField/VENTokenField/VENTokenField.m
+3
-6
3 additions, 6 deletions
Pods/VENTokenField/VENTokenField/VENTokenField.m
with
3 additions
and
6 deletions
Pods/VENTokenField/VENTokenField/VENTokenField.m
+
3
−
6
View file @
932580f2
...
@@ -319,13 +319,12 @@ static const CGFloat VENTokenFieldDefaultMaxHeight = 2000.0;//150.0;
...
@@ -319,13 +319,12 @@ static const CGFloat VENTokenFieldDefaultMaxHeight = 2000.0;//150.0;
token
.
didTapTokenBlock
=
^
{
token
.
didTapTokenBlock
=
^
{
[
weakSelf
didTapToken
:
weakToken
];
[
weakSelf
didTapToken
:
weakToken
];
};
};
if
(
_tokens
.
count
>
1
)
{
if
(
i
==
[
self
numberOfTokens
]
-
1
)
{
[
token
setTitleText
:[
NSString
stringWithFormat
:
@"%@,"
,
title
]];
}
else
{
[
token
setTitleText
:[
NSString
stringWithFormat
:
@"%@"
,
title
]];
[
token
setTitleText
:[
NSString
stringWithFormat
:
@"%@"
,
title
]];
}
else
{
[
token
setTitleText
:[
NSString
stringWithFormat
:
@"%@,"
,
title
]];
}
}
token
.
colorScheme
=
[
self
colorSchemeForTokenAtIndex
:
i
];
token
.
colorScheme
=
[
self
colorSchemeForTokenAtIndex
:
i
];
[
self
.
tokens
addObject
:
token
];
[
self
.
tokens
addObject
:
token
];
if
(
*
currentX
+
token
.
width
<=
self
.
scrollView
.
contentSize
.
width
)
{
// token fits in current line
if
(
*
currentX
+
token
.
width
<=
self
.
scrollView
.
contentSize
.
width
)
{
// token fits in current line
...
@@ -485,9 +484,7 @@ static const CGFloat VENTokenFieldDefaultMaxHeight = 2000.0;//150.0;
...
@@ -485,9 +484,7 @@ static const CGFloat VENTokenFieldDefaultMaxHeight = 2000.0;//150.0;
-
(
void
)
didTapToken
:(
VENToken
*
)
token
-
(
void
)
didTapToken
:(
VENToken
*
)
token
{
{
if
(
_readOnly
)
{
if
(
_readOnly
)
{
token
.
highlighted
=
YES
;
[
self
.
delegate
tokenField
:
self
didTappedTokenTwice
:[
self
.
tokens
indexOfObject
:
token
]];
[
self
.
delegate
tokenField
:
self
didTappedTokenTwice
:[
self
.
tokens
indexOfObject
:
token
]];
token
.
highlighted
=
NO
;
return
;
return
;
}
}
VENToken
*
tempToken
=
nil
;
VENToken
*
tempToken
=
nil
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment