Touch above the uiTabBar - iphone

I have an app that has an UITabBarController.
I've noticed that there are like 15 pixels above the tab bar that will push the button under it. And there are like 10 more pixels that don't do anything.
The problem is that i have some button in the view that are quite close near the bar bar and when i try to touch them, the tabbar buttons get pushed.
It seems like this is standard behavior for standard UI elements. I've noticed that the buttons from the navigation bar have the same efect
Regards,
George

Some times I get this problem when i am using action sheets top of the tab bar. The button is in top of the tab bar is hard to click. Only part of the button is clicking. So what I am doing there is adding the action sheet from the parentview controller.
[actionSheet showInView:self.parentViewController.tabBarController.view];
After doing this button is working perfectly. I think you can add the button to your app like this too. Hope this will help. Thank you.

Related

Swift - iOS 8 Issue with navigation bar elements

I have a little problem with my navigation bar. I want to add title and one button at the top of the view. So I added a Navigation Controller and navigation bar to the view. But when I execute the app, title and the button is almost unvisible. And there is no action at button click.
Anyone knows or got some suggestions why that is happening?
Thanks.

Unhide UINavigationBar LIKE in the Email App

I have a View Controller where I perform a "search as you type". When I press on the SearchBar, hide the Navigation Bar, animated and I also show the scope buttons for my SearchBar. The problem is that when I press on a cell to push a new View Controller the Navigation Bar stays hidden. I KNOW I can set it unhidden, but it will animate from the top. I want to do something similar like in the Email app, when I press on a new cell, a new View Controller is pushed, and the Navigation Bar is animated from the right, like it belongs with the pushed View Controller. How can I make this happen?
Thank you.
Cosmin
Use the UISearchDisplayController to handle the search bar. The behavior you describe is the default behavior.

Modal flip in tab bar tab, only the view, storyboarding

I have a tab bar with five tabs.
In one tab I have a mapview. I have an info button in the bottom right hand corner of the map. When a user clicks the info button, I want the mapview to flip to a view that has information about the mapview. I'd like a back button in the nav bar to flip back.
How can I do that?
I've managed to create a view controller and make a modal segue, but it doesn't keep the tab bar with it. Worse still, I created a back button on the flipside-viewcontroller with a modal segue back to the mapviewcontroller, and when you go back, the tabbar is gone!
I'm using a storyboard, and most tutorials I find use nibs and xibs. The more control-clicking I can do through the storyboard-IB and the less code the better. Any help is appreciated!
Once you have created in the backButton in the MapInformation view in storyboard, you can add the following to your MapInformation.h/m:
MapInformation.h:
-(IBAction)backButton:(id)sender;
MapInformation.m:
-(IBAction)backButton:(id)sender
{
[self.presentingViewController dismissModalViewControllerAnimated:YES];
}
After that, make sure to connect your IBAction in your storyboard(control-clicking).

UiNanigation Bar With background image and rightbarbutton item

i have added back ground image to UINavigationBar in drawrect method,image added properly.and also i added right bar button item to Navigation bar in View did load method.
my problem is i navigate to detail view and when i am coming back to rootview controller, right bar button item is not visible but button action working on navigation bar right side
Can Any one help to solve this
I would remove the background image. Apple engineers told me not to do this very thing. I would use the customise options in ios5 instead.

Process touches behind the UINavigationBar

In my application, I'm displaying a fullscreen image in a 320 x 480 frame. After I display the image, I fade the navigation bar out to allow the user to see the whole picture. When the user taps in the area where the navigation bar was, I would like to bring the navigation bar back.
This is very similar to what happens in the iPhone Photos app.
Unfortunately, after I've hidden the UINavigationBar, I can't process touches on the screen where the navigation bar once was. I believe this is because the origin of the parent view is right below the navigation bar:
Nav Bar http://shortybox.com/navbar.gif
How can I process touches in this area to bring the nav bar back?
You can override hitTest:withEvent: on UIWindow. See this answer.
Are you fading out, and then removing the bar from its superview? If you just set its alpha to zero, it will still trap your clicks. Try removing it, or hiding it.
It looks like there isn't currently an easy solution to this. The default UINavigationBar is gobbling up all of my events. I ended up hiding the default navigation bar throughout my entire application, and adding a dummy UINavigationBar in interface builder.
By doing so, I lost the default "Back" buttons that come with the NavigationController, but the app is now functional.