Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Link in Textview Or Label

Posted on 2011-09-13
5
Medium Priority
?
831 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 1500 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
A brief look into what is, how to use, and how to make GIFs
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…

618 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