Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone ($4.99)

dotnetIQ ($4.99)

Your First iPhone App ($1.99)

iPocket Tools 9 in 1 ($0.99)

Catch-Me (Free)

Alien Strike ($0.99)

Historic Olympic Medal-Table ($1.99)

Want your application or service advertised on iPhone Dev SDK?

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

Reply
 
LinkBack Thread Tools Display Modes
Old 05-17-2009, 12:55 PM   #1 (permalink)
New Member
 
Join Date: May 2009
Posts: 6
Default Pausing Help?

Hi, I'm new here (and new to programming iPhone apps) but I was working on a simple game and I need a bit help. Alright so you know when someones battery is running low and a window pops up saying (Ex. "10% Battery remaining") I was wondering if its possible to pause the game when that pops up or even prevent that window from popping up. I'm new so.. Help would be appreciated.

Last edited by Red Blood; 05-17-2009 at 06:04 PM.
Red Blood is offline   Reply With Quote
Old 05-17-2009, 09:43 PM   #2 (permalink)
Senior Member
iPhone Dev SDK Supporter
 
smasher's Avatar
 
Join Date: Jul 2008
Location: San Mateo, CA (San Fran)
Posts: 2,449
Default

Your app delegate should get the message "applicationWillResignActive" whenever an external popup (like that, or a call) comes up; you can take that opportunity to set something in your game state to "paused = true."
__________________
smasher is offline   Reply With Quote
Old 05-18-2009, 07:00 AM   #3 (permalink)
New Member
 
Join Date: May 2009
Posts: 6
Default

Thank you so much. I got it to work I believe
Red Blood is offline   Reply With Quote
Reply

Bookmarks

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
» Stats
Members: 21,507
Threads: 35,791
Posts: 156,790
Top Poster: smasher (2,449)
Welcome to our newest member, soulless
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:25 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0