L
L
lovlovbat2015-01-30 06:16:00
iOS
lovlovbat, 2015-01-30 06:16:00

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

3 answer(s)
A
An, 2015-01-30
@Flanker_4

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

D
Dmitry Avvakumov, 2015-02-06
@DimonBaron

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];
    }

E
Egor Zhivagin, 2017-08-25
@raselgit

$(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');
  });
});

Read about siblings() , everything is very simple
UPD: Replaced attr() with data() , so it's a little more correct

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question