I am having an issue with the info button in a stardard xcode utility based app.
All I have done is put a button in the middle of the MainView.xib and now when I run the app the infoButton to flip the view only works if you tap it about 3 or 4 times.
If I remove the button and have my MainView blank it is fine.
Has anyone else had this problem?
Does anyone know something obvious I am doing wrong.
I am having an issue with the info button in a stardard xcode utility based app.
All I have done is put a button in the middle of the MainView.xib and now when I run the app the infoButton to flip the view only works if you tap it about 3 or 4 times.
If I remove the button and have my MainView blank it is fine.
Has anyone else had this problem?
Does anyone know something obvious I am doing wrong.
Thanks in advance.
You're doing nothing wrong, it's that the info button is so tiny, it's hard to hit. One way around this is to make a larger invisible custom button (don't select a background) and have it connect to the same method as the info button. Now drag the info button to the center of the invisible button.
Are you just linking the touchDown or TouchUpInside of the new button to the toggleView in the First Responder ?
If I make a new project of type Utility App it seems to respond fine. But as soon as I put anything in MainView.xib e.g. a button it starts to only respond to every third or fourth press.
I just had the same problem and found a page with great sample code showing how to make the infoButton frame larger: iPhone SDK Examples
I am using XCode's "Utility Application" project template and so I stuck the code in viewDidLoad in RootViewController.m--could be the wrong place for all I know (I'm just starting out to develop on the iPhone) but it did seem to work, making the infoButton much easier to tap.
I just had the same problem and found a page with great sample code showing how to make the infoButton frame larger: iPhone SDK Examples
I am using XCode's "Utility Application" project template and so I stuck the code in viewDidLoad in RootViewController.m--could be the wrong place for all I know (I'm just starting out to develop on the iPhone) but it did seem to work, making the infoButton much easier to tap.
Is it really true that IB doesn't allow you to change the size of a button?
Can anyone confirm this? I have added a button Type: Info Light via interface builder. I tried using the code to increase the frame size, but can't tell any difference when I run it.
Is it required to add the button programatically in order to change the frame size? I do know that if I look at the size in Interface Builder, the values 18 x 19 are grayed out.