I am working on a conference based application. I want to show an incoming call window to the user, I am using UIActionSheet to show that notification. Now, the problem here is that the call may come at any time from the server, at that we may be in our application any view, how can I show the incoming call notification using UIActionSheet? What delegate I have to set?
UIActionSheet *actionSheet = [[UIActionSheet alloc]
initWithTitle:msg_string
delegate:(id)??????????????????
cancelButtonTitle:@"ACCEPT"
destructiveButtonTitle:@"DECLINE"
otherButtonTitles: nil];
Any suggestion is greatly appreciated. Thanks.
an object that is guaranteed to be alive; e.g. the application's delegate. also, in a typical iOS application structure, it has a reference to the top level of the view hierarchy. -Alan