Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 11-11-2011, 08:07 AM   #1 (permalink)
Registered Member
 
Join Date: Sep 2011
Posts: 10
Soonu is on a distinguished road
Default get handle from volume up button?

Hi,

it is possible to get the handle from the volume up button?
For example i think the camera app from apple do it also.

...or perhaps anybody knows a workaround for my problem?

regards,
Soonu
Soonu is offline   Reply With Quote
Old 11-11-2011, 08:19 AM   #2 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

You could do it by adding an observer for "AVSystemController_SystemVolumeDidChangeNotificat ion", but keep in mind that if you use hardware buttons for anything other than what is expected of them, in your case changing volume, your app will be rejected during review. And yes, Apple does do it in the camera app, but you're not Apple, are you?
baja_yu is offline   Reply With Quote
Old 11-11-2011, 08:26 AM   #3 (permalink)
Registered Member
 
Join Date: Sep 2011
Posts: 10
Soonu is on a distinguished road
Default

Quote:
Originally Posted by baja_yu View Post
You could do it by adding an observer for "AVSystemController_SystemVolumeDidChangeNotificat ion", but keep in mind that if you use hardware buttons for anything other than what is expected of them, in your case changing volume, your app will be rejected during review. And yes, Apple does do it in the camera app, but you're not Apple, are you?
Many thanks for your great answer baja_yu!

But that sounds not good ...I had hoped apple will be not rejected those apps.
Soonu is offline   Reply With Quote
Reply

Bookmarks

Tags
hardware buttons, volume

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 400
16 members and 384 guests
7twenty7, Alex-alex, Apptronics RBC, baja_yu, chiataytuday, dre, gwelmarten, ipodphone, jeroenkeij, jleannex55, matador1978, mbadegree, n00b, pbart, Retouchable, usernametaken
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,676
Threads: 94,125
Posts: 402,910
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jleannex55
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:23 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0