UISearchController disappears when pushing a new UIViewController











up vote
0
down vote

favorite
1












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.










share|improve this question
























  • 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















up vote
0
down vote

favorite
1












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.










share|improve this question
























  • 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













up vote
0
down vote

favorite
1









up vote
0
down vote

favorite
1






1





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.










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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


















  • 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
















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












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






share|improve this answer





















  • 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











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















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

























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






share|improve this answer





















  • 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















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






share|improve this answer





















  • 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













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






share|improve this answer












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







share|improve this answer












share|improve this answer



share|improve this answer










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


















  • 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


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














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





















































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







Popular posts from this blog

Landwehr

Reims

Schenkenzell