App data visibile on background when duoble tapping home button in iPAdHow to show last view controller with data in it after password form?how to show view when keyboard appears in landscapeHow to handle push notification when my app become active?iOS push notifications and AppDelegate methods behaviourRegister for navigation intent in iOS swiftWatchOS5 - how to refresh my complication instantly?swift 4 notification not appearing when app is in backgroundUpdate phone to 12.2 and now xcode 10 is throwing error when building appHow can I resume the mp4 video after transition from the background to the active state? Xcode 10.1, Swift 4.2

Why would an Inquisitive rogue choose to use Insightful Fighting as opposed to using their Cunning Action to Hide?

Metric version of "footage"?

About the number of real roots

What is the English equivalent of 干物女 (dried fish woman)?

Chaining Dissonant Whispers via War Caster feat

To accent or not to accent in Greek

Can a continent naturally split into two distant parts within a week?

What does "Fotze" really mean?

What is this welding tool I found in my attic?

How to determine port and starboard on a rotating wheel space station?

Filtering fine silt/mud from water (not necessarily bacteria etc.)

Why did the Japanese attack the Aleutians at the same time as Midway?

Is a public company able to check out who owns its shares in very detailed format?

Installing ubuntu with HD + SSD

Is killing off one of my queer characters homophobic?

Why does Hellboy file down his horns?

Find values of x so that the matrix is invertible

Why is dry soil hydrophobic? Bad gardener paradox

In which ways do anagamis still experience ignorance?

How can an advanced civilization forget how to manufacture its technology?

Would letting a multiclass character rebuild their character to be single-classed be game-breaking?

How to check the quality of an audio sample?

What is the German equivalent of 干物女 (dried fish woman)?

Was the Ford Model T black because of the speed black paint dries?



App data visibile on background when duoble tapping home button in iPAd


How to show last view controller with data in it after password form?how to show view when keyboard appears in landscapeHow to handle push notification when my app become active?iOS push notifications and AppDelegate methods behaviourRegister for navigation intent in iOS swiftWatchOS5 - how to refresh my complication instantly?swift 4 notification not appearing when app is in backgroundUpdate phone to 12.2 and now xcode 10 is throwing error when building appHow can I resume the mp4 video after transition from the background to the active state? Xcode 10.1, Swift 4.2






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















My application need to handle two scenarios mentioned below:



1:After running your application ,when you tap on home button once and then twice to see the applications in background the data on the app should not be visible on background.



2:After running your application ,when you tap on home button twice then the app data should not be visible on background



Among this two scenarios 1st one is handle by writing code to add a splash screen on window in applicationDidEnter backround.But for the second scenario as applicationDidEnterBackground is not getting called I put the same code in applicationWillResignActive.But before the code written is executed the application is shown in backround with all the data in the screen.



I am not getting what is creating this issue.
Below is the code which i am writing in both delegate methods



 let imgviewSplash: UIImageView = UIImageView.init(frame: (self.window?.bounds)!)
imgviewSplash.tag = 5001
let imgSplash = UIImage.init(named: "640-690.jpg")
imgviewSplash.image = imgSplash
UIApplication.shared.keyWindow?.subviews.last?.addSubview(imgviewSplash)









share|improve this question




























    0















    My application need to handle two scenarios mentioned below:



    1:After running your application ,when you tap on home button once and then twice to see the applications in background the data on the app should not be visible on background.



    2:After running your application ,when you tap on home button twice then the app data should not be visible on background



    Among this two scenarios 1st one is handle by writing code to add a splash screen on window in applicationDidEnter backround.But for the second scenario as applicationDidEnterBackground is not getting called I put the same code in applicationWillResignActive.But before the code written is executed the application is shown in backround with all the data in the screen.



    I am not getting what is creating this issue.
    Below is the code which i am writing in both delegate methods



     let imgviewSplash: UIImageView = UIImageView.init(frame: (self.window?.bounds)!)
    imgviewSplash.tag = 5001
    let imgSplash = UIImage.init(named: "640-690.jpg")
    imgviewSplash.image = imgSplash
    UIApplication.shared.keyWindow?.subviews.last?.addSubview(imgviewSplash)









    share|improve this question
























      0












      0








      0








      My application need to handle two scenarios mentioned below:



      1:After running your application ,when you tap on home button once and then twice to see the applications in background the data on the app should not be visible on background.



      2:After running your application ,when you tap on home button twice then the app data should not be visible on background



      Among this two scenarios 1st one is handle by writing code to add a splash screen on window in applicationDidEnter backround.But for the second scenario as applicationDidEnterBackground is not getting called I put the same code in applicationWillResignActive.But before the code written is executed the application is shown in backround with all the data in the screen.



      I am not getting what is creating this issue.
      Below is the code which i am writing in both delegate methods



       let imgviewSplash: UIImageView = UIImageView.init(frame: (self.window?.bounds)!)
      imgviewSplash.tag = 5001
      let imgSplash = UIImage.init(named: "640-690.jpg")
      imgviewSplash.image = imgSplash
      UIApplication.shared.keyWindow?.subviews.last?.addSubview(imgviewSplash)









      share|improve this question














      My application need to handle two scenarios mentioned below:



      1:After running your application ,when you tap on home button once and then twice to see the applications in background the data on the app should not be visible on background.



      2:After running your application ,when you tap on home button twice then the app data should not be visible on background



      Among this two scenarios 1st one is handle by writing code to add a splash screen on window in applicationDidEnter backround.But for the second scenario as applicationDidEnterBackground is not getting called I put the same code in applicationWillResignActive.But before the code written is executed the application is shown in backround with all the data in the screen.



      I am not getting what is creating this issue.
      Below is the code which i am writing in both delegate methods



       let imgviewSplash: UIImageView = UIImageView.init(frame: (self.window?.bounds)!)
      imgviewSplash.tag = 5001
      let imgSplash = UIImage.init(named: "640-690.jpg")
      imgviewSplash.image = imgSplash
      UIApplication.shared.keyWindow?.subviews.last?.addSubview(imgviewSplash)






      swift4 appdelegate xcode10 ios12






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 26 at 5:55









      VorkVork

      3842 gold badges9 silver badges29 bronze badges




      3842 gold badges9 silver badges29 bronze badges






















          0






          active

          oldest

          votes










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55350650%2fapp-data-visibile-on-background-when-duoble-tapping-home-button-in-ipad%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes




          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55350650%2fapp-data-visibile-on-background-when-duoble-tapping-home-button-in-ipad%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript