Answer the question
In order to leave comments, you need to log in
Is it possible to make popup windows on ios?
On androud, my application works like this - when you turn off the sound with the hardware buttons, a window with the settings of my application pops up on top of the desktop (or any other application in which you are currently working). Is it possible to organize the same functionality on ios?
Answer the question
In order to leave comments, you need to log in
Here's what you want - no
But it's not entirely clear what you want. Purely theoretically, this can be done through an extention (iOS 8) with the today type.
In this case, the user on any screen will be able to pull out the notification center and see the ui of your application. But "the window with the settings of my application pops up" this will probably not be allowed in the app store, because who the hell needs your application settings in a place where they should not be
Secondly, it is not clear what they will configure at all
On iOS, there can only be one active app on the screen.
Alternatively, you can look towards UILocalNotification .
These are notifications that can pop up on top of other applications, but they
must be created in advance at a specific time.
UILocalNotification *notification = [[UILocalNotification alloc] init];
notification.timeZone = [NSTimeZone defaultTimeZone];
// покажем нотификацию через 1 минуту
notification.fireDate = [[NSDate date] dateByAddingTimeInterval:60.0f];
notification.alertAction = @"Simple action!";
notification.alertBody = @"Simple body.";
notification.soundName = UILocalNotificationDefaultSoundName;
notification.applicationIconBadgeNumber = 0;
notification.repeatInterval = NSWeekCalendarUnit;
// push notification only in background state
if ([UIApplication sharedApplication].applicationState == UIApplicationStateBackground) {
[[UIApplication sharedApplication] presentLocalNotificationNow:notification];
}
$(function(){
$('#support nav a').click(function(e) {
e.preventDefault();
$(this).addClass('active').siblings().removeClass('active');
var tab = $(this).data('id');
$('#support .slide[data-id="' + tab + '"]').addClass('active').siblings().removeClass('active');
});
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question