Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there Android Intent concept in iPhone SDK

Just switching from Android to iPhone. In Android I can make several apps and use a tabView to call each app as intent.

In iPhone, I can make several apps. I need a tab to call each apps or app views. Is there similar concept as intent in iPhone? Just switched to iPhone, copying all the other projects into the tabbar does not work out. If you have other methods to solve, I really appreciate. Thanks,

like image 925
user661192 Avatar asked Apr 12 '11 05:04

user661192


People also ask

Is there an intent on iOS?

Intent in Android covers a lot of functions. There is no iOS equivalent to that. But if your objective is to launch a different app, and pass parameters to it, you can try out URL Schema.

What are the two types of android intent?

There are two intents available in android as Implicit Intents and Explicit Intents.

What is iOS and android SDK?

Android SDK is open-source, easy to install and use, and is compatible with all operating systems (Linux, Windows, and Mac OS). iOS SDK is the software development kit released by Apple in 2008.

How does android Intent work?

Android Intent is the message that is passed between components such as activities, content providers, broadcast receivers, services etc. It is generally used with startActivity() method to invoke activity, broadcast receivers etc. The dictionary meaning of intent is intention or purpose.


Video Answer


2 Answers

Android and iOS are very different in this regard. Android is very open about letting you use intents to mix and match activities from other apps. iOS isn't like that; each app runs in its own private space and generally cannot even see other apps' data, let alone use their services. It is possible to cause other apps to run via custom URLs, but that's not the same thing.

What you'll need to do is to copy or move the code for the view controllers, views, etc. of your various iOS apps into your tab bar app project. You'll build them all into a single application, and the tab bar will switch between the view controllers.

like image 80
Caleb Avatar answered Oct 05 '22 20:10

Caleb


With iOS 8 you will have something similar to Android Intents. Using App Extensions you can reach similar behavior.

In a close future Apps will start expose their "extension" (as you do in Android Framework declaring Intent Filters in the manifest) that will be used by application who need.The extension areas allowed in this first version are:

  • Today
  • Share
  • Action
  • Foto Editing
  • Document Provider
  • Custom Keyboard

It's great finally apple release this functionality!

like image 37
GlueLabs Avatar answered Oct 05 '22 20:10

GlueLabs