Solved

Link in Textview Or Label

Posted on 2011-09-13
5
822 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 20

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 20

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Let me explain this picture a little bit.  First, in case you haven't already guessed, you are looking at my 2 phones, an Android Samsung Galaxy S5 on the left and an iPhone 5 on the right.  They are on their respective cradles on my desk.  But, you…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

733 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