If you tag your view can you hide it, adjust the alpha or move it when the 
containing view scrolls?

On Feb 3, 2015, at 10:43 PM, Donald Hall wrote:

> Alex,
> 
> Thanks for the reply.
> 
> To clarify, the search bar is in the tableview’s main header view, and it was 
> created and added in the viewDidLoad method of my custom tableview. So, not 
> in the XIB. Like so:
> 
>     UISearchBar *searchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(0, 
> 0, self.tableView.bounds.size.width, 44)];
>     self.tableView.tableHeaderView = searchBar;
> 
> Don
> ------------
> Don Hall
> Apps & More Software Design, Inc.
> http://www.appsandmore.com
> [email protected]
> 
> On Feb 3, 2015, at 3:29 PM, Alex Zavatone <[email protected]> wrote:
> 
>> Let's start from the beginning.  How are you adding a search bar to the XIB? 
>>  Is it in a view and next to your table view, or is it in a table view?
>> 
>> 
>> 
>> 
>> 
>> Sent from my iPad. Please pardon typos.
>> 
>> On Feb 3, 2015, at 5:07 PM, Donald Hall <[email protected]> wrote:
>> 
>>> Hi all,
>>> 
>>> I am implementing a search bar as a table view header in my universal 
>>> (iPhone/iPad) app. The table view is inside a navigation controller. What I 
>>> want to do is mimic the behavior of Apple’s ‘Messages’ app for my search 
>>> bar. However, I can’t seem to figure out how to do it despite lots of 
>>> research (Stack Overflow, this list, Google).
>>> 
>>> On the phone when you tap in the search text field in Messages everything 
>>> moves up so that the search bar is just under the status bar and the status 
>>> bar background turns gray (same color as the search bar). In my app 
>>> everything moves up but the status bar background remains its original 
>>> white color. This looks okay, just different, but I suspect is linked to 
>>> the problem below.
>>> 
>>> On the iPad in Messages the behavior is the same. The status bar background 
>>> above the list of messages turns gray when you tap in the search field. In 
>>> my app on the iPad the navigation controller is inside a split view 
>>> controller (which appears to be the case for Messages). Here when I tap in 
>>> the search text field everything moves up, but the navigation bar text also 
>>> moves up and is partly visible under the status bar, which retains its 
>>> original color. The search bar looks to be snug against the status bar, the 
>>> navigation bar text (title etc) seems to have invaded the status bar.
>>> 
>>> Can anyone tell me what is going on? How do I get the status bar to turn 
>>> color (and hide the navigation bar text on the iPad). This is an older 
>>> project and uses xib files. Is there some setting in the xib file to choose?
>>> 
>>> Thanks for any pointers,
>>> 
>>> Don
>>> 
>>> ------------
>>> Don Hall
>>> Apps & More Software Design, Inc.
>>> http://www.appsandmore.com
>>> [email protected]
>>> 
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Xcode-users mailing list      ([email protected])
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/xcode-users/zav%40mac.com
>>> 
>>> This email sent to [email protected]
> 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to