Or Numbers app... ? If I have not been signed-in the Numbers app shows the "Sign-In Required" alert. If I touch Cancel - system minimizes the app. Is there any way to do it programmatically?
Asked
Active
Viewed 898 times
2
-
2Where does this happen? Do you mean the Apple Numbers app? The spreadsheet app? I've never seen that happen. I've not even seen the "sign in required" thing. Programatically closing an app is a direct contradiction of the Apple guidelines to the point that it will get your app rejected. You really, REALLY shouldn't do this. – Fogmeister Jan 27 '15 at 22:02
-
1@Fogmeister Seems it's OS alert. "To download these app and receive future updates, you must first sign in with your Apple ID". So it is not the app future. Here is the video https://www.youtube.com/watch?v=JrbL5E2vMyQ – kostyl Jan 28 '15 at 09:44
-
1Ah. That's because the apps aren't actually installed. They are there as a promotional prompt to get you to install them. – Fogmeister Jan 28 '15 at 09:46
1 Answers
3
This is private method for minimize iOS App. Not for Appstore:
In Swift:
NSThread.detachNewThreadSelector(Selector("suspend"), toTarget: UIApplication.sharedApplication(), withObject: nil)
In Objective-C
[NSThread detachNewThreadSelector:NSSelectorFromString(@"suspend") toTarget:[UIApplication sharedApplication] withObject:nil]

ILYA2606
- 587
- 3
- 7