UISearchBar prompt appears ON the bar, not at top of it
up vote
1
down vote
favorite
I do not know if this is a known or unknown bug, but in my case, the prompt label appears ON the bar, not at the top of the bar, like the following:
It is the default search bar, dragged and dropped into a view and its constraints are set as they should be. As you can see only its placeholder and prompt attributes are changed.
The problem occurs with iOS 12.1 (both simulator and device) and Xcode 10.1
I was not able to find anything about it. I have to use that prompt thing!
Has anyone any idea or any of you are able to reproduce the issue?
ios uisearchbar xcode10 ios12
add a comment |
up vote
1
down vote
favorite
I do not know if this is a known or unknown bug, but in my case, the prompt label appears ON the bar, not at the top of the bar, like the following:
It is the default search bar, dragged and dropped into a view and its constraints are set as they should be. As you can see only its placeholder and prompt attributes are changed.
The problem occurs with iOS 12.1 (both simulator and device) and Xcode 10.1
I was not able to find anything about it. I have to use that prompt thing!
Has anyone any idea or any of you are able to reproduce the issue?
ios uisearchbar xcode10 ios12
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I do not know if this is a known or unknown bug, but in my case, the prompt label appears ON the bar, not at the top of the bar, like the following:
It is the default search bar, dragged and dropped into a view and its constraints are set as they should be. As you can see only its placeholder and prompt attributes are changed.
The problem occurs with iOS 12.1 (both simulator and device) and Xcode 10.1
I was not able to find anything about it. I have to use that prompt thing!
Has anyone any idea or any of you are able to reproduce the issue?
ios uisearchbar xcode10 ios12
I do not know if this is a known or unknown bug, but in my case, the prompt label appears ON the bar, not at the top of the bar, like the following:
It is the default search bar, dragged and dropped into a view and its constraints are set as they should be. As you can see only its placeholder and prompt attributes are changed.
The problem occurs with iOS 12.1 (both simulator and device) and Xcode 10.1
I was not able to find anything about it. I have to use that prompt thing!
Has anyone any idea or any of you are able to reproduce the issue?
ios uisearchbar xcode10 ios12
ios uisearchbar xcode10 ios12
asked Nov 5 at 17:27
Arda Oğul Üçpınar
3821723
3821723
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
It gives you more flexible when you adjust the background offset.
After add Constraints, the running screen looks fine.
background offset is a bad choice of name then, huh? weird.
– Arda Oğul Üçpınar
Nov 5 at 22:17
It's searchFieldBackgroundPositionAdjustment of UISearchBar
– E.Coms
Nov 5 at 23:19
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
It gives you more flexible when you adjust the background offset.
After add Constraints, the running screen looks fine.
background offset is a bad choice of name then, huh? weird.
– Arda Oğul Üçpınar
Nov 5 at 22:17
It's searchFieldBackgroundPositionAdjustment of UISearchBar
– E.Coms
Nov 5 at 23:19
add a comment |
up vote
2
down vote
accepted
It gives you more flexible when you adjust the background offset.
After add Constraints, the running screen looks fine.
background offset is a bad choice of name then, huh? weird.
– Arda Oğul Üçpınar
Nov 5 at 22:17
It's searchFieldBackgroundPositionAdjustment of UISearchBar
– E.Coms
Nov 5 at 23:19
add a comment |
up vote
2
down vote
accepted
up vote
2
down vote
accepted
It gives you more flexible when you adjust the background offset.
After add Constraints, the running screen looks fine.
It gives you more flexible when you adjust the background offset.
After add Constraints, the running screen looks fine.
answered Nov 5 at 22:13
E.Coms
1,1141410
1,1141410
background offset is a bad choice of name then, huh? weird.
– Arda Oğul Üçpınar
Nov 5 at 22:17
It's searchFieldBackgroundPositionAdjustment of UISearchBar
– E.Coms
Nov 5 at 23:19
add a comment |
background offset is a bad choice of name then, huh? weird.
– Arda Oğul Üçpınar
Nov 5 at 22:17
It's searchFieldBackgroundPositionAdjustment of UISearchBar
– E.Coms
Nov 5 at 23:19
background offset is a bad choice of name then, huh? weird.
– Arda Oğul Üçpınar
Nov 5 at 22:17
background offset is a bad choice of name then, huh? weird.
– Arda Oğul Üçpınar
Nov 5 at 22:17
It's searchFieldBackgroundPositionAdjustment of UISearchBar
– E.Coms
Nov 5 at 23:19
It's searchFieldBackgroundPositionAdjustment of UISearchBar
– E.Coms
Nov 5 at 23:19
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53159289%2fuisearchbar-prompt-appears-on-the-bar-not-at-top-of-it%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password