Is there a way to disable the volume buttons on an iPhone, using code from an app? - iphone

Basically, I want to make a FPS game, but use the Volume+ button to shoot, and the Volume- button to switch weapons, instead of having a UI on the screen.
Is there a way to disable the default functions of the volume buttons, and instead reroute it to my desired output?

Related

Implement the Flash button animation as in iPhone camera in my app?

Im developing a camera app, I want to implement the same animation that happens in default iPhone camera app when you click on the flash button, i.e once you click on the flash button, we can see the other 2 buttons animating, and once you click any one button it again animates and hides.
how can i do this?
Thanks in advance.
Take a look at DDExpandableButton which is able to do exactly this and even includes example code for creating a flash button. https://github.com/ddebin/DDExpandableButton

Is it possible to record/replay a set of touch events on iPhone for demo purposes?

I'm thinking of a way to include a demo of how my iPhone app works along with the app. I need to demonstrate how one of my on-screen GMGridView controls works.
Is it possible to record or programmatically create a set of long press, touches moved, touches ended events and then invoke them on the interface?
I would suggest this:
Add a visual tap effect when you press the screen Record yourself
using the App on the simulator using a screen capture Add in a video
player at the tutorial screen that shows how to use the app
Or create a UIView animation doing the above steps if you rather not add a video player.
A great way to this is SIKULI tool. You can automate the demo work flows easily : http://sikuli.org/

Animated view transitions in an iPhone app

I have an iPhone app which has a menu. Each menu item will take you to another page. I would like to know how to perform simple animations page transitions (fade in/out, slide). Is this possible within interface builder or do I need different software?
Anyhow, we can do this programmatically.
Pl. look at this a link

iphone google maps crosshair button

I would like to use or emulate a button like the gps button in the bottom left corner of the standard maps application on the iphone OS. The button behaves like a toggle button where gps is enabled or disabled depending on whether it is pushed and it may hold a small spinner component while the gps is finding your position.
Does anyone know if this component can be easily constructed using default components? If no, what would be the best way to develop such a component?
Is the crosshair/target icon a generic icon that I can re-use?
The button is just an image, you should be able to recreate it.
In order to do the tracking, I would look at this sample code: http://developer.apple.com/iphone/library/samplecode/LocateMe/index.html
It shows you how to get the GPS coordinates, then you can feed that data into a MKMapView.
Apple's Spinner Button is hidden, but can be used with systemButton: 100

i image does not work good in utility app on iPhone app

I working on a utility app. When I run the app in simulator clicking i image at the bottom flips the view in a flash. But when I run the app on iPhone device it behaves abnormally. At times it flips the view in just 1 tap. The other times it does not bother to react even after tapping the image 10 times. I tried with other utility app also - same issue. Thus its not an issue with the code I believe.
Any help to resolve this issue is much appreciated.
Thanks,
AJ
This is a problem because the 'i' button is not very big by default and touches are missed easily.
You need to put another button in front of the 'i' button with the 'Custom' type in Interface Builder, so that it doesn't have any image. Then you can make this invisible button much larger and connect it to the same action as the info button.
You also need to enable "shows touch on highlight" in Interface Builder so that you get the white glow effect when the invisible button is touched.