English 中文(简体)
iPhone How to programmatically handle SMS/Call alert notification
原标题:

I m having some problems with SMS alerts and call notification freezing up the video player. I m currently displaying a video using MPMoviePlayerController with movieControl Hidden. I m also overlaying a subtitle using UITextView on top of the video.

However whenever a SMS alert popup, the video will freeze up but the textView will continue to scroll. A call alert will also intrupt the video, causing the video to freeze up while the text continue scrolling, which leads to misallignment.

So is there any way to fix the video from freezing up? Or is there any way to detect SMS/Call alert notifications and handle it?

最佳回答

check

- (void)applicationWillResignActive:(UIApplication *)application

and

- (void)applicationDidBecomeActive:(UIApplication *)application

methods of UIApplicationDelegate protocol. Or you can catch

UIApplicationDidBecomeActiveNotification

and

UIApplicationWillResignActiveNotification

notifications

问题回答

暂无回答




相关问题
how do you suppress a direct call to a managed method?

I want to know if this is inherently possible: Think of a cloud scenario. I allow users to upload their .net code onto my server. However to manage things on my server I can t allow users to write ...

F# Riddle: how to call an overload of a method?

First part: call F# from F# Let s say we have the following type defined in F#: type MyClass = static member Overload1 (x, y) = "Pim" static member Overload1 (x : System.Tuple<_, ...

Django: Passing a request directly (inline) to a second view

I m trying to call a view directly from another (if this is at all possible). I have a view: def product_add(request, order_id=None): # Works. Handles a normal POST check and form submission and ...

IPhone Web App reurn to app after call

I have created a web app that produces a list of items to buy, It also gives a link to call the shop using a Tel: link to its phone number. I want to stay on the app page during the call so the user ...

jqgrid add / delete / modify button call a html page

i work with jqgrid for listings only also i don t use jqgrid forms i need to call external forms (example: update.cgi?id=123) to make modifications on the database. how can i make that ? thanks a lot

热门标签