iphone - Forcing termination of app when accepting incoming call -


i need force quit app when pressed answer button in incoming call , when tap on reject app should continue working.

i had tried pacing exit(0) in applicationdidenterbackground.

the app force quitting . problem relaunching automatically itself.

any suggestion , ideas??

never ever call "exit" within app code. apple will reject apps quit out on own, user isn't doing explicitly. apple says in "ios human interface guidelines" (look in "don't quit programatically" section)

the official & approved way quit app user manually tapping on home bar button , hitting "-" badge on shaking apps in "mini" dock.

i'd thing should in case handle things in applicationwillresignactive: app delegate method.


Comments

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

java - stack overflow exception on xml transformation -