IOS equivalent of running Activity on Android

I just finished working with Android Activity, which allows other actions to call it for some result (it is not intended for stand-alone Activity). Now I am working on an equivalent iOS application and cannot find any resources for how I would enable similar features in iOS.

Situation: The tool I am creating is intended for use by other applications, and not as a standalone application. The fact is that the GUI that should be presented to the user is more likely to be involved, so I would like to provide the developer with an all-in-one package that they can simply launch and get the results. Doing this on Android was very simple. I just wrote an Activity and instructed the developer to run this Activity for the result. I looked around and can't find similar functionality to let the iOS developer do the same. What would be the best way to do this?


I think that part of the problem that I have when searching for resources is that I'm not quite sure what I am doing is called. Library? expansion? plugin? I would think that the library does not have a graphical interface, and it seems that extensions and plugins are made for an extensible application (that is, one in which the user can install the extension / plugin).

+7
source share
3 answers

Your API can be a single call that will output a modal representation. To get an answer, you can specify the target and selector. Delivering it to other developers means wrapping it in "frames." I am not sure if you can include resources.

+2
source

There is really no equivalent. The closest thing you can find is to call the second UIApplication openURL application with a user scheme that your application listens for, and then when your application is executed, it will do the same with the user scheme that the listener listens for.

In practice, an iOS application usually includes the entire activity equivalent as some library, which at a high level will look like a subclass of UIViewController, which appears modally, and then calls the delegation method or the completion selector, something like completion.

+1
source

IPhone development is a different design than Android development, so you may need to rethink what you are trying to do.

Most likely, you will want to first view the code in each program, just so that you can check it, but this may not be the best solution.

But, without knowing the details of what you are trying to do, it is difficult to give some suggestions for better solutions.

For example, you can find LocalNotifications as one of the solutions ( http://useyourloaf.com/blog/2010/7/31/adding-local-notifications-with-ios-4.html ), but again, it depends on your needs

I found that using local notifications to call the REST service and then processing it and deciding whether to inform the user was useful as a replacement for the way I used Intents in an Android application.

0
source

All Articles