Button delay Highlighting - ios

I'm building an iOS application and I have some buttons inside a PageView Controller inside a ContainerView. The problem is the buttons aren't responsive at all. They only get selected some time after I pressed them.
Is there any fast solution?
Thanks

Related

Touching an area of screen dismisses view controller

I've never seen a problem like this until now. When I first updated my app, this problem did not exist. It was fine. Since then there've been a couple of iOS updates, so it's possible this is where the problem began.
I basically have a few view controllers that proceed like a wizard from one step to the next, by either clicking back/cancel button or the next button.
There's a textView covering the main area.
Normally by touching inside the textView it would begin editing.
On this viewcontroller it's fine, that works. No problem.
On this viewcontroller and every subsequent view controller including tableviews with options to select, if you touch anywhere underneath the cancel and next buttons inside the view controller, it dismisses the view controller and goes back to the previous screen. There doesn't appear to be anything executed in my code when this happens. It just dismisses the view controller as if one pressed the back button. I know the back button code is not being executed because I printed a line in there.
The next view controller is a tableView and does not have a textView. It's got nothing to do with the textView. It just dismisses if I touch anywhere on the screen other than the next or cancel buttons. The next views are the exact same way. It's like a big invisible button is in the way of the screen blocking any interaction with the top half.
What's going on here? How do I fix this? It has never done this before and I didn't change anything.
Turns out that this was caused by using page curl transitions. I changed it to flip horizontal and it works now. Page curl transitions are obviously bugged currently.

How can I prevent clicking iAd from changing my view?

I have an app that displays buttons, the buttons move around the screen upon being touched. The problem I am having is that you can move the buttons around, however if you click on the iAd advertisement after you move the buttons, the buttons return to their original positions. How can I stop this?
Note: I was having the same problem for a while whenever I did a full screen rotation (only landscape supported). Upon rotation the buttons would return to their original positions. I fixed that problem by changing the segue from modal to push. Not sure if this helps but thought I would mention it.
EDIT: I have been trying to use the ViewWillAppear method to correct the layout, however it is not getting called after closing out of the iAd.

iPhone App Navigation Tabbed Bar button images and background very delayed in appearing

I have an iPhone app with a custom vertical Navigation Tab Bar and it work fine through most of the app but in one area the tab bar background image and tab button images are missing then appear about 15 seconds later. The touch events where the buttons should be are working fine instantly but the images are just very delayed in appearing. Can't figure out why this is happening and only in this area, have been trying to figure this out for a very long time. Thanks.
Please post your code, it will be easer to help.
The best way to solve problems with navigaton bar, is to have a method that sets the navigation bar in the correct view that you are in, and make shure you call this method at the "viewWillApear".
Call the method for example "navigationBarSetup", and set there all the correct buttons, and views for the navigation bar.
This Essie is happening because you have some delayed view blocking your buttons.
Oh and try cleaning (command + k) before you run next time. Is could be the problem some times..
Hope this helps

UIButton doesn't respond to touch on first load, but works after segueing back from another view controller

I'm not sure when or how this happened in my project, but it did. The main button in the middle of my initial view controller ignores all touch events when I first load the app. The buttons in my navbar on the bottom all work fine.
If I follow one of those buttons through a modal segue to another view controller and then segue back into the initial view controller, the button works perfectly.
I'm at a loss. Any idea how this could have occurred or how I could fix it?
Update
I can't put my finger on what, but this has something to do with my constraints. If I remove them (and my app tumbles into a mess on 3.5 inch phones), the button works at all times.
I have the same problem: on the first load of the view one particular UIButton doesn't work, but if I tap on other tab bar element, launching a segue and then coming back to my home screen, it works perfectly.
My problem persists even if I remove every constraints for the view.
In my case, the POSITION of the button seems to be the cause of the issue: in the right side of the view it becomes not working, but if I move the same button on the center or left of my view it becomes available.
HELP ME/US :-(

Tapping background to close subview in Xcode 4.3

Currently I am creating an app. for the ipad that uses a media player. When you click on a button the media player pops up and I have code that when you press another button the media player stops and is hidden so you can go back to using the superview. The problem is, I dont want to have to click a button to close the subview, I want to be able to click anywhere on the background to close. I've tried making the whole background a button but I'm having trouble writing code to make it so that the full window button that closes the subview ONLY appears when the subview is up. Right now the full window button is up constantly so I can't click on the button that brings up the subview in the first place because the large button is overlapping. I hope this dilemma is fairly easy to understand. If not I can send some code.
Try a UIPopover instead. What you're describing is the default behavior.

Resources