iOS 8 linking to a website through a text view - swift

I'm working on an app that needs to link to Stripe's terms of service website. I have a text view in my view controller.
https://stripe.com/connect/account-terms works as a link when I set the behavior to Selectable and the detection to links and addresses.
However, I would link to hide the link behind the phrase "Stripe Connected Account Agreement".
Does anyone know how to do this using Swift and iOS 8?
Also, as a design choice, I do not have to do anything except have a link present to the terms of service to meet legal compliance. Still, should I consider implementing a web view?

Use a NSAttributedString constructed like this: NSAttributedString(string:"Stripe Connected Account Agreement", attributes:[NSLinkAttributeName: NSURL(string:"http://website.com")])

Related

Embeding multiple apps in an app?

I am a newcomer to application development and I'm wondering if the concept I have can actually be created.
My concept involves creating an app that has the ability to embed another app within itself.
I'll do an example which is also a very bad one but you'll at least get the point.
Picture an app on the iphone that's called "Kwesi's app". Once you tap on it, it opens up a page with 3 icons. A facebook icon, a gmail icon and a hotmail icon. Now tap your finger on the gmail icon and instantly your gmail opens up withing "Kwesi's app" and you have full access. There is also a button in the top left corner that says "Main Menu". Once you tap the "Main Menu" icon, you go back to the three icons and can now rinse and repeat.
I hope this example is clear enough.
The question I seem to be coming back to is, would it be possible having an application that embeds or links you to other apps in that manner? I can only guess that it'd be really weird since they'd have to be installed seperately on your phone but I don't want that. I want one app that can handle an already set amount of apps within itself as the above example shows.
Thank you very much for reading and any thought would be very much appreciated.
/Kwesi
No, that is not possible in iOS for security reasons. But you have the following choices to modify your idea:
Register a protocol for the app : This will allow you to send data between applications using protocols. However, if the app wasn't made by you and doesn't have a protocol, then you can't use it.
Using this idea, it is possible to open an application. For example, opening Facebook with "fb://" or evernote with "evernote://". I am sure there are other applications that have these protocols. Just be aware that you don't have control on the application in this case. You can only open it and send data to it.
Since your example was about Facebook, Gmail. Then I would suggest using their corresponding API and build everything in your application. Many famous applications provide APIs for a fee or free usage. You have to check with each one separately.

Conversation ui control for iPhone

Is there any control to show messages on iOS, similar to the SMS app and a lot of other apps (Viber, ICQ)? It seems many of them are using the same control for this.
To expand Noah's Answer, there may not be a control like that in the iOS SDK, but there are people on github, bitbucket, and cocoa controls who have rolled their own. See here for a pretty accurate clone of the messages.app that comes bundled with the iPhone.
Layer is one of the easiest ways to integrate chat and messaging features in your apps. With the recent launch of Atlas, it is even easier to integrate Layer in your app using its fully featured, high performance, 100% customizable UI kit. The important controllers that you can use to simplify chat UI are:
ATLConversationListViewController: A controller that provides an editable list of all Conversations for the authenticated user.
ATLConversationViewController: A controller that a scrollable, auto-paginating view of the Messages in a Conversation.
ATLParticipantTableViewController: A controller that provides a sortable, searchable table view for selecting a set of participants to communicate with.
For full implementation details about integrating Atlas and Layer in your app, see Implementing Chat/Messaging in iOS apps with Layer.
No such control exists in the iOS SDK; the third-party implementations you mention are just mimicking the SMS app’s UI. Most implementations of this are based on a UITableView; you’ll pretty much have to roll your own version of it starting from there.

Queries before submitting the iPhone project to App market

I have made Map application to locate places in Australia. I am calling web service to fetch the places data and respective detail view. I have some doubts before launching the application to Australian app market.
I have used Apples Reachability classes as it is for showing network/internet unavailability. Is this ok?? Or there is another method for this??
I have used BSForwardGeocoder classes for forward geocoding. from link http://blog.sallarp.com/ipad-iphone-forward-geocoding-api-google/
As I am using UIView to show detail view on annotation callout button by using addsubview method. I did not used navigation controller but still I am giving custom arrow back button on top of detail view
I am reading Human Interface guideline for iPhone application. Still I need suggestion from you. Am I doing right or do I need to change in above three condition. I dont want that my app get rejected by any of this reasons. Thanks in advance.
1.)You have used apple reachability class,to check the network status,You can use that there is no issue with that,your app won't get rejected due to this.
2.)You have used BSForwardGeocoder for geocoding,I think there are no private api calls in this,but do check that is there any private api call.if there would be no Private api call.
There is no issue.So your app won't be rejected.
3.)You are using Views and showing your own arrows to pop and push,but you are not using any navigation controller.Thats fine,thats your own way to handle the views.That won't reject your app.
So cheers and go ahead,but do check that you dont use any private api call in your app.
as that is the maximum reason.
Hope This Will Help You........!

Embedded applications, similar to iAd, on Iphone OS

Apple just announced the iAd platform as part of iPhone OS 4. It essentially is an embedded application with a unified interface where you close the embedded application using a small x in the corner. This is obviously a nice experience for users, that could be used by other advertising platforms or to provide an embedded application such as dictionary service.
While details remains sketchy on the iPhone OS 4 public APIs, I am wondering if expert iPhone developers know whether this functionality can be replicated by third-party ad providers, or others interested in something like an embedded dictionary service. Is this possible?
Something like an embedded app already exists today. If a developer has integrated with the address book you can get full address book functionality including creating new address book entries as well as editing existing entries.
What's required to start the process is a view controller that's presented modally. The user interaction is limited to this new view controller and any other view controllers associated with it. When the user is done (or clicks on the small x in the corner in this case) the modal view controller is dismissed.
The interesting thing here is that the iAd platform presents a very flexible workflow, for lack of a better term, for different types of ads whereas the existing workflow in address book integration, for example, is less flexible and static. This may have to do with internals of the new OS entirely.
Back to your question, an embedded dictionary service would be fairly simple, relatively speaking, to build and is possible with the OS versions shipping today for the iPhone, iPod Touch, and iPad devices.

Does iPhone provide any API for inserting menu selections into e-mail, SMS and Addressbook context menus?

The Blackberry APIs allow one to insert custom menu items (and corresponding event handlers) into their standard email, SMS and Address book context menus. Is there any supported way to do this with iPhone APIs?
No, Apple doesn't provide these kinds of hooks. However there are some tricks I've seen - one example is what Twitterific does to tweet pages that you are viewing in Safari, via Bookmarklet which uses a Custom URL to launch Twitterific.
Perhaps you can do something similar by having a text containing a custom URL. I've never tried this but it's worth experimenting with.
As of SDK 3.1.2, no, that's not possible. In fact there's very little you can change! There's not even an easy way to change the colour of the title bar!