I'm also presenting it as a modal controller. I get the same behavior (with 
certain settings), except that the search bar doesn't accommodate the status 
bar; it's  tucked up under it.

Apple really screwed the pooch with the status bar change in iOS 7; I've had 
nothing but problems with it ever since.

> On Feb 2, 2016, at 10:12 , Alex Zavatone <[email protected]> wrote:
> 
> Oh, it slides down another view.
> 
> It looks like it modally presents a view controller over the current view and 
> slides down the view with the search bar and segmented controller.
> 
> Look at it.  If you tap on any element in the bottom bar, search immediately 
> disappears up and the white background fades away to display the view behind 
> it.
> 
> I'll bet this is a crafty use of a modal controller.  
> 
> And if I'm wrong, you could take the approach that alertViews take.  They 
> present themselves in another window entirely and ride above all the content 
> below.
> 
> 
> 
> 
> On Feb 1, 2016, at 11:21 PM, Rick Mann wrote:
> 
>> 
>>> On Feb 1, 2016, at 20:02 , Alex Zavatone <[email protected]> wrote:
>>> 
>>> 
>>> On Feb 1, 2016, at 10:50 PM, Rick Mann <[email protected]> wrote:
>>> 
>>>> 
>>>>> On Feb 1, 2016, at 19:47 , Alex Zavatone <[email protected]> wrote:
>>>>> 
>>>>> Check out how I did it where the search bar is within the scene’s view 
>>>>> and the scene’s view is the top level view.  Hopefully, this will 
>>>>> translate from iOS to OS X.
>>>> 
>>>> Not sure why you keep suggesting OS X. This is iOS.
>>>> 
>>>> The problem is the designers want it over the nav bar, not in the view.
>>> 
>>> Sorry, I misunderstood.  
>>> 
>>> Create a custom nav bar subclass and add it as a property to the nav bar.
>>> 
>>> Or do you mean status bar?
>>> 
>>> In this case, isn’t it easiest to hide the status bar or make it 
>>> transparent?  
>> 
>> No, that moves too much stuff around. There's already a nav bar there, I 
>> just want the search bar to come down over it.
>> 
>> The Apple Music player app does exactly this, and it does it without 
>> presenting the search controller modally. I'm guessing it's not using 
>> UISearchController, but I can't figure out how to do what it does precisely. 
>> But it has the precise behavior I want.
>> 
>> 
>> -- 
>> Rick Mann
>> [email protected]
>> 
>> 
> 


-- 
Rick Mann
[email protected]



_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to