Solved

Link in Textview Or Label

Posted on 2011-09-13
5
818 Views
Last Modified: 2012-05-12
We have an application to be developed in iPhone which has a screen which contains paragraph of content. Inside the paragraph, there may be some links for the word as like HTML, and when the user hits the link it should load the Table view to show the indexed list of items.
0
Comment
Question by:CGVAK
  • 3
  • 2
5 Comments
 
LVL 19

Expert Comment

by:darbid73
ID: 36534169
You have two options.  The first is to display the paragraph of content in a UIwebview, then the URLs are done for you.  The other is to use UITextView and setting the dataDetectorTypes property of the UITextView to 'UIDataDetectorTypeLink '.
0
 

Author Comment

by:CGVAK
ID: 36536603
Both the option mentioned are to open URL, but not to perform an event like button. As I mentioned clearly that the link should nagivate to a iPhone View Page but not to HTML page. Please advise.
0
 
LVL 19

Accepted Solution

by:
darbid73 earned 500 total points
ID: 36536770
Here is an example of what I was thinking about.

intercepting a url click

Put a dummy url in and you then know what has been clicked and can then open your view instead of opening the web view.
0
 

Author Comment

by:CGVAK
ID: 36537212
Will try this and let you know.
0
 

Author Closing Comment

by:CGVAK
ID: 36909603
Yes. The solution helped us to find an exact solution for our need. Thank you.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Basics of Storyboard Storyboards were first introduced to developers in the release of iOS 5. They save the developer the trouble of designing each screen’s interface in a different file. The storyboard allows you to see the conceptual mockup o…
You should read OS supplied guidelines before developing. I can't stress that enough. The guidelines will help you understand the reasons mobile app developers do what they do.  Apple is very particular when they review appstore submissions.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now