I've noticed many iPhone apps have info buttons which looks like (i) and then they light up when tapped which takes you to the About page of the app. My app is complete except for this screen. Can someone tell me if this is a standard button and how I could add it in the Interface builder? I created my project as a View-based project, if that is relevant. Thanks in advance!
In interface builder just add a new button and then in the button attributes, use the drop down menu and instead of custom you can choose info light or dark. That seems to be the simplest way...and i'm pretty sure the highlighting of the button happens as a default setting of that too.
Sorry, other projects came up in the meantime and am now just getting back to this issue.
I probably should've stated in my post that I was trying to put the info button on a navigation bar, but I assumed it didn't matter. So, I tried all the advice above and none of it works. I finally got it working by doing the following:
1. Create a button in the view (not the navigation bar!)
2. Set this button to be Info Light
3. Set the action for this button to be Touch Inside Up
4. Move the button to the navigation bar
If you move the button to the navigation bar before setting the info light property or the action, then you will no longer be able to access these attributes within the Interface Builder! In any case, thanks for the help to get me on the right track.
Wait, how did you just add it to the navigation bar? I'm having trouble doing that, my navigation bar isn't visible in interface builder, it's coded in..
Wait, how did you just add it to the navigation bar? I'm having trouble doing that, my navigation bar isn't visible in interface builder, it's coded in..
you can't add buttons to a navController... you need to set the leftBarButtonItem and rightBarButtonItem properties ...something like this...
Ok well that kind of works, but it's still not the standard info button, it's the info button inside a big chunky square button, which just looks wrong and unconventional.
There must be some standard way to put the actual info button up there rather than just stick an image inside the normal button no?
Ok well that kind of works, but it's still not the standard info button, it's the info button inside a big chunky square button, which just looks wrong and unconventional.
There must be some standard way to put the actual info button up there rather than just stick an image inside the normal button no?
Ok well that kind of works, but it's still not the standard info button, it's the info button inside a big chunky square button, which just looks wrong and unconventional.
There must be some standard way to put the actual info button up there rather than just stick an image inside the normal button no?
another way to do this using the standard info button is :
Hey, thanks for this code, its been great for me. Unfortunately, since iOS4 it has stopped working for me -- the button is no longer visible, although tapping on the spot where it used to be does actually work. I don't suppose you have a fix for iOS4 perchance?
For this to work on iOS4.x you need to make a small change to the above code.
In short, you need to specify when creating the UIButton the frame to use, and to remove the image edge inset command.