UISearchController disappears when pushing a new UIViewController
up vote
0
down vote
favorite
I'm currently working with an example from Raywenderlich: UISearchController-Tutorial (The finished project is at the end of their article or here) and I noticed that when I execute a search and click on one of the results, during the push transition, the UISearchController disappears. It's visible on this video: here
Before selecting a result
During the transition to the new VC
I run this example with Xcode 10, iOS 12 (sim: iPhone 8)
Any idea / pointer would be deeply appreciated
Cheers.
ios swift cocoa-touch uisearchcontroller ios12
add a comment |
up vote
0
down vote
favorite
I'm currently working with an example from Raywenderlich: UISearchController-Tutorial (The finished project is at the end of their article or here) and I noticed that when I execute a search and click on one of the results, during the push transition, the UISearchController disappears. It's visible on this video: here
Before selecting a result
During the transition to the new VC
I run this example with Xcode 10, iOS 12 (sim: iPhone 8)
Any idea / pointer would be deeply appreciated
Cheers.
ios swift cocoa-touch uisearchcontroller ios12
Can u share any code, hard to say anything! When you are presenting your detailviewcontroller are u settingdefinesPresentationContext = truefor the detailviewcontroller? If you don't set that you may see some weird behaviors.
– lionserdar
Nov 9 at 5:02
@lionserdar, thank you for your comment. The code is downloadable from the link I posted. SettingdefinesPresentationContextdoesn't fix the issue.
– DrS
Nov 9 at 14:57
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm currently working with an example from Raywenderlich: UISearchController-Tutorial (The finished project is at the end of their article or here) and I noticed that when I execute a search and click on one of the results, during the push transition, the UISearchController disappears. It's visible on this video: here
Before selecting a result
During the transition to the new VC
I run this example with Xcode 10, iOS 12 (sim: iPhone 8)
Any idea / pointer would be deeply appreciated
Cheers.
ios swift cocoa-touch uisearchcontroller ios12
I'm currently working with an example from Raywenderlich: UISearchController-Tutorial (The finished project is at the end of their article or here) and I noticed that when I execute a search and click on one of the results, during the push transition, the UISearchController disappears. It's visible on this video: here
Before selecting a result
During the transition to the new VC
I run this example with Xcode 10, iOS 12 (sim: iPhone 8)
Any idea / pointer would be deeply appreciated
Cheers.
ios swift cocoa-touch uisearchcontroller ios12
ios swift cocoa-touch uisearchcontroller ios12
edited Nov 9 at 3:37
asked Nov 9 at 3:08
DrS
12
12
Can u share any code, hard to say anything! When you are presenting your detailviewcontroller are u settingdefinesPresentationContext = truefor the detailviewcontroller? If you don't set that you may see some weird behaviors.
– lionserdar
Nov 9 at 5:02
@lionserdar, thank you for your comment. The code is downloadable from the link I posted. SettingdefinesPresentationContextdoesn't fix the issue.
– DrS
Nov 9 at 14:57
add a comment |
Can u share any code, hard to say anything! When you are presenting your detailviewcontroller are u settingdefinesPresentationContext = truefor the detailviewcontroller? If you don't set that you may see some weird behaviors.
– lionserdar
Nov 9 at 5:02
@lionserdar, thank you for your comment. The code is downloadable from the link I posted. SettingdefinesPresentationContextdoesn't fix the issue.
– DrS
Nov 9 at 14:57
Can u share any code, hard to say anything! When you are presenting your detailviewcontroller are u setting
definesPresentationContext = true for the detailviewcontroller? If you don't set that you may see some weird behaviors.– lionserdar
Nov 9 at 5:02
Can u share any code, hard to say anything! When you are presenting your detailviewcontroller are u setting
definesPresentationContext = true for the detailviewcontroller? If you don't set that you may see some weird behaviors.– lionserdar
Nov 9 at 5:02
@lionserdar, thank you for your comment. The code is downloadable from the link I posted. Setting
definesPresentationContext doesn't fix the issue.– DrS
Nov 9 at 14:57
@lionserdar, thank you for your comment. The code is downloadable from the link I posted. Setting
definesPresentationContext doesn't fix the issue.– DrS
Nov 9 at 14:57
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
Its default in iOS12. Just look at the Apple-Mail App. There it is the same. Actually you dont need the searchbar, when you are showing another VC
thank you for your answer. The fact that the searcher disappears when the user clicks on a result and a new VC is pushed isn't nice visually.
– DrS
Nov 9 at 15:04
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Its default in iOS12. Just look at the Apple-Mail App. There it is the same. Actually you dont need the searchbar, when you are showing another VC
thank you for your answer. The fact that the searcher disappears when the user clicks on a result and a new VC is pushed isn't nice visually.
– DrS
Nov 9 at 15:04
add a comment |
up vote
0
down vote
Its default in iOS12. Just look at the Apple-Mail App. There it is the same. Actually you dont need the searchbar, when you are showing another VC
thank you for your answer. The fact that the searcher disappears when the user clicks on a result and a new VC is pushed isn't nice visually.
– DrS
Nov 9 at 15:04
add a comment |
up vote
0
down vote
up vote
0
down vote
Its default in iOS12. Just look at the Apple-Mail App. There it is the same. Actually you dont need the searchbar, when you are showing another VC
Its default in iOS12. Just look at the Apple-Mail App. There it is the same. Actually you dont need the searchbar, when you are showing another VC
answered Nov 9 at 6:50
Jonathan
1
1
thank you for your answer. The fact that the searcher disappears when the user clicks on a result and a new VC is pushed isn't nice visually.
– DrS
Nov 9 at 15:04
add a comment |
thank you for your answer. The fact that the searcher disappears when the user clicks on a result and a new VC is pushed isn't nice visually.
– DrS
Nov 9 at 15:04
thank you for your answer. The fact that the searcher disappears when the user clicks on a result and a new VC is pushed isn't nice visually.
– DrS
Nov 9 at 15:04
thank you for your answer. The fact that the searcher disappears when the user clicks on a result and a new VC is pushed isn't nice visually.
– DrS
Nov 9 at 15:04
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53219299%2fuisearchcontroller-disappears-when-pushing-a-new-uiviewcontroller%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Can u share any code, hard to say anything! When you are presenting your detailviewcontroller are u setting
definesPresentationContext = truefor the detailviewcontroller? If you don't set that you may see some weird behaviors.– lionserdar
Nov 9 at 5:02
@lionserdar, thank you for your comment. The code is downloadable from the link I posted. Setting
definesPresentationContextdoesn't fix the issue.– DrS
Nov 9 at 14:57