I'd like to know if it's possible to create a simple watchOS app that basically has a button to do the exact same thing as another button on the main iOS app.
If so, how do I do this? Do you recommend any guide or blog post?
Yes, this is perfectly doable. I'd recommend this watchOS 2 tutorial. You're going to use the WatchConnectivity framework to communicate with the parent app. The specific method you'll use to send data to the parent app is sendMessage(_:replyHandler:errorHandler:).
Related
I've been working on a UINavigationController-based Swift iOS app for the past few months, but I'd like to switch to a UIDocumentBrowserViewController-based app (or at least be able to implement it in my existing app). Is there a way to do this without creating a whole new project/target?
Is there a way to do this without creating a whole new project/target?
Yes. Make a new document browser based app so you can see how the project is configured, and copy its special features carefully into your existing project.
Have you tried to use UIDocumentPickerViewController? If you implement this class in the section of your existing App then it should work.
I'm trying to use the recently updated sketchfab app as an AR app for presentations https://itunes.apple.com/us/app/sketchfab/id1201268000?mt=8.
In order to make this happen, my idea is to create an qr-code that launches the iOS app and passes the model-id as parameter.
Since the AR-Kit implementation in the sketchfab is pretty new, I cannot find any documentation for this.
Does anybody know how to do this?
Thanks
Christian
okay, I found the solution. It's pretty straightforward:
If you generate a URL-QR-Code like:
sketchfab://models/344eed672c4d4b8b9f6364bbf4684ccd
It automatically opens sketchfab and the app automatically opens the model
I'm bit confused about the concepts of Extension in ios. After going through some tutorials I still have doubt how an app and an extension in ios communicate each other, does this has to do anything with Framework. If Yes, why we are adding Frameworks...
Hoping for a response, Thanks
App extensions are not stand alone apps. They are providing extended functionality of the app (which can be accessed from main app, called the host app) that is meant to be efficient and focused towards a single task.
For example, Today widget in iPhone is an extension. We can create a today widget for an iOS app which is an extension of the existing iOS app. For example, let us consider an app which shows current weather in detail. Then you can create an extension for this app, to show only current temperature without much detail in a widget.
The extension uses the data which is shared between both the main app and the extension. Embedded framework is a technique to share same code between two targets. You can share data using NSUserdefaults and app group concept.
I have an existing iOS application on the app store, and I am building a new companion app to work with this existing app.
I need to pass objects/data from this new app to my existing app when a certain action is taken. The behaviour I'm looking for is very similar to AirDrop but the data is passed to another app on the same device.
The objects I want to pass locally between apps are simply NSObject's.
As per your comment you wants to share NSObjects between your iOS apps. The best approach would be "Custom URL Schemes". But in this approach you may need to add or re write some parts in your old iOS App as well.
checkout this SO Answer for more info on implementing custom url scheme and history of sharing data between ios apps.
Apple documentation for sharing data is also available.
If your app supports greater than iOS 8 you can also use the new feature called "App Group Functionality"
I want to make an app that won't be released on the App Store. I want this app to open siri through private API's, basically inject a home button press and hold into the events queue. I have tried using GSEvent(GSSendEvent - Inject Touch Event iOS), but it no longer works(it silently fails) after iOS 7. I believe it is possible through SBUIController but I can't figure how to use SBUIController in iOS 8. To be clear, I want to do this on a non-jailbroken phone.
How can I go about doing this in iOS 8?
Thanks
You should check out the runtime headers of all the private/public apis here.
I found a method hidden in accessibility, which could possibly work in your case. Have a look at it here: http://git.io/frK6Sw . The method is named -(void)openSiri, which suggest that it might open Siri, I haven't tried though.