I am wondering how I would use swift have one app that manages the touch bar while having another app open and being used. For example an ideal scenario is as follows:
1) The user launches touchBar app (that I have made with swift) and the app icon sits in the menu bar (with wifi, battery, time, ect.) And the app changes how the touch bar looks (eg: adds a few buttons).
2) The user launches another app and is able to use the other app while the touch bar continues to have the buttons and stuff on it.
Thanks in advance!
Related
Im my app, I have this code at a given time:
UIApplication.sharedApplication().openURL(NSURL(string: "calshow://")!)
which takes you to the calendar of the device. How could I get back to the scene where that line is executed?
Thank you.
EDIT:
Pressing home (option+shift+h, since the frame is not shown in my iOS Simulator) takes you to home, not the app, as it should be.
A quote from this:
Unlike other platforms such as Android, iPhone does not create a stack of actions (back stacking on Android). What this means is that if you do decide to launch another application, your application will not resume when the user exits from the application you opened.
If user want to get back to your app, they should press home (option+shift+H) twice, and select the your application from the list.
iOS9 introduced a new "Back-To-App" button at top-left corner, which allow you get back to your application. You should see this button after the calendar is showed from your app.
I am developing an IOS game. As in many IOS games, I hide the status bar and never show it at any point. My app includes a feature to download new application data stored in moderately large files on my server. The problem is: how do I indicate network activity to the user when downloading is in progress? The standard approach is to display the network activity indicator in the status bar, but the status bar is hidden in my app. Of course, I want to conform to Apple User Interface Guidelines and pass the App Store review process.
Why don't you show a loader element inside the app? Something like this:
I sure you can choose any way to inform user about that. But you should also update standard indicator because it becomes visible when your app becomes hidden (if you want to download in background).
iPhone app crashes when i try to switch between two apps one is my own app and other app which is downloaded from iTunes. Suppose my app has 2 view namely view A and view B .first I redirect my app from view A to view B then I pause my app and open another app. Then I resume my app and want to go back to view A. when I click the back button that point of time my app crashes. I can't find any reason for that and also checked all memory management & its seems OK.
Thanks in advance.
this may be a simple one, but I don't know the answer.....
For testing whether my location-based app receives updates in background, I usually run the app and then press the Home button to put the app in background. However, I am curious whether pressing the Lock button (at the top) will put the app in background or not.
Regards.
Yes. Hitting the lock button does background the application. However when you unlock it, the application is then brought back to the foreground. Should be able to test this within your App Delegate and simple log statements.
Is it possible to capture screen (take screenshot) on iPhone (Using for example: UIGraphicsBeginImageContext) while incoming call is in process or while the iPhone rings?
tnx.
Your app won't have access to the screen when the call is ringing.
Press power and home buttons together to do a system screenshot?
Use the screenshots section in the Xcode Organizer to capture the screen while tethered?
When a call is in progress you can press Home and re-open your app.
At that point you could use UIGraphicsBeginImageContext but it probably won't include the statusbar or green 'in progress' bar.