Home Answers Viewqa Mobile-Applications Hyperlink on UILabel iPhone SDK

 
 


Java Coder
Hyperlink on UILabel iPhone SDK
1 Answer(s)      a year and 10 months ago
Posted in : MobileApplications

Hi, I wanted to set a hyperlink on UILabel in my iPhone application. Can anyone suggest me how to do it? Thanks.

View Answers

July 5, 2011 at 3:45 PM


Hi, instead of creating a hyperlink on UILable ..you can do it in UITextView or UIWebView that is very easy. See the below given code.

Creating a hyperlink in UITextView

  UITextView *iView = [[UITextView alloc] initWithFrame: frame];
    iView.text = @"this is http://www.roseindia.net link";
    iView.editable = NO;
    iView.dataDetectorTypes = UIDataDetectorTypeLink;

    //cell is the TableView's cell    
    [cell.contentView addSubview:iView];
    [iView release];

or

Creating a Hyperlink in UIWebView

[iWebView loadHTMLString:@"<html><head></head><body style=\"font-family: sans-serif;\"> .... </body></html>" baseURL:nil];









Related Pages:
Hyperlink on UILabel iPhone SDK
Hyperlink on UILabel iPhone SDK  Hi, I wanted to set a hyperlink on UILabel in my iPhone application. Can anyone suggest me how to do it? Thanks
what is json in iphone sdk
what is json in iphone sdk  What is json in iphone sdk? Is this a library and when i need to include JSon in my iPhone SDK App
iPhone UILabel Color
iPhone UILabel Color In this example we'll discuss about the UILabel class... the appearance of text in your iPhone applications. Final application will look alike.. But first of all lets understand what is UILabel? UILabel is class
iphone sdk-objective c
iphone sdk-objective c  how to delete random value which is got from the random function in an array
What is iPhone SDK?
What is iPhone SDK?       What is iPhone SDK? The iPhone SDK or iPhone software... and build the software for the iPhone. The iPhone SDK includes the API and components
iPhone SDK UIAlertView
iPhone SDK UIAlertView  Hi, How can i use the iPhone UIAlertView to create a message box. Can any help or provide example or online reference. Thanks
Iphone SDK Development
Iphone SDK Development  Hi, I am a beginner in the Mobile applications platform. From where i get the online help or information related to Iphone SDK Development Apps help. Please provides me reference sites.. Thanks
activity indicator for iphone sdk
activity indicator for iphone sdk  Setting the UIActivity indicator in search bar for iPhone SDK.   [NSThread detachNewThreadSelector:@selector(threadStartAnimating:) toTarget:self withObject:nil];   -(void
iPhone SDK Multiple UIButton
iPhone SDK Multiple UIButton  In my iphone SDK program.. i wanted... into database. Any help is appreciated. Thanks in Advance!   iPhone SDK...:myButton]; iPhone SDK Creating Multiple UIButton for (int row = 0; row<4
implement core data iphone sdk
implement core data iphone sdk  How to implement core data in iPhone SDK? Please Help
iPhone Capturing Screen SDK
iPhone Capturing Screen SDK  Creating an application to capture the screen shots from iPhone. In objective c is there any class that make it enable..?   UIGraphicsBeginImageContext(CGSizeMake(480,320)); UIImage* result
parse url iphone sdk
parse url iphone sdk  How can i parse two different URL's using NSXMLParser
share data iphone sdk
share data iphone sdk  How to share data in iPhone application? Actually i want the sharing feature in my iPhone application. Thanks!   You can use the emailing feature in your iPhone application to the share data
Page curl effect iPhone SDK
Page curl effect iPhone SDK  How to get the page curl effect in my iPhone application? Please suggest or give an example to get the page curl effect in iPhone SDK application. Thanks.   In objective c there is a method
space between buttons iPhone SDK
space between buttons iPhone SDK  Hi, can any one please explain how to add space between UIButtons in iPhone SDK. Actually i am creating Multiple UIButton's and added them to my UIScrollView. But problem is that those buttons
license for google maps - iPhone SDK
license for google maps - iPhone SDK  Do i need a license to display the locations on google map in my iPhone application
iPhone SDK Tutorials and Examples
The best collection of iPhone development tutorials and examples specially developed to learn iPhone SDK programming easily. These iPhone SDK tutorials... we will explain you the iPhone SDK programming concepts in detail. You
How to open URL in iPhone SDK
How to open URL in iPhone SDK  In my iPhone application ..i wanted to open a url in the application. Is it possible? If yes how will i come back to my application
add plist file iphone sdk
add plist file iphone sdk  how to add plist file in XCode
add plist file iphone sdk
add plist file iphone sdk  how to add plist file in XCode
rate my app iphone SDK
rate my app iphone SDK  How can i enable "Rate and Review Application" feature of my application on iTune
remove from superview iphone sdk
remove from superview iphone sdk  How to remove the old view from super-view and add the new view safely? My main concern is memory leak.. so, please suggest how can i do it without facing a memory leak. Thanks
iPhone 3.0 SDK
iPhone 3.0 SDK delivers on its Promise  ... release is the beta version of the third iPhone SDK. The iPhone 3.0 SDK beta allows..., included in the iPhone 3.0 SDK release. The PNS allows third party servers to send
go back to previous view iphone sdk
go back to previous view iphone sdk  How to go back to previous view iphone sdk?    - (IBAction)backView:(id)sender { [self.navigationController popViewControllerAnimated:YES
How do SEL and @selector work in iphone sdk?
How do SEL and @selector work in iphone sdk?  How do SEL and @selector work in iphone sdk?   SEL is a type that represents a selector in Objective-C. The @selector() keyword returns a SEL that you describe
Installing iPhone SDK
Downloading and Installing iPhone SDK?       Downloading SDK for iPhone.... The Apple's SDK enables the programmers to develop software for iPhone
iPhone SDK Comparing Strings
In this section I will show you how you can compare the two strings in your iPhone SDK Project. To compare the Strings you will have to use... of comparing strings in iPhone sdk programs. The == operator only compares
iPhone SDK Examples
. are presented here. We will discuss all the UI and other components of the iPhone SDK...While developing the iPhone program, many times you need some code to copy... Debugging Audio and many more tips and tricks of iPhone application
Use of SVOX SDK 5.0.0 for text to speech in iphone project
Use of SVOX SDK 5.0.0 for text to speech in iphone project  how to implement svox sdk for text to speech in xcode. I need a sort of exmaple for it...awaitinh ofr your reply thanks
Use of SVOX SDK 5.0.0 for text to speech in iphone project
Use of SVOX SDK 5.0.0 for text to speech in iphone project  how to implement svox sdk for text to speech in xcode. I need a sort of exmaple for it...awaitinh ofr your reply thanks
Current Date iPhone SDK
Current Date iPhone SDK In this example, you'll find out how to get current date & day in iPhone SDK. We'll also write a method to print the day and date...! If not lets first find out what is NSdateFormatter in iPhone SDK programming
UILabel programmatically
UILabel programmatically  Hi, How to create UILabel programmatically? Thanks
iPhone Change Button Text
. UIControlStateHighlighted iPhone SDK App - Change UIButton Text on Different States...iPhone Change Button Text The example illustrate how to change the text... class, which defines the behavior of all the objects such as UIButton, UILabel
hyperlink
hyperlink  I have a .xls file and i want the code to open this .xls file in read only mode when i click on a hyperlink,it should not not be editable,please send me the code
NSString into the UILabel
NSString into the UILabel  How to display the NSString into the UILabel on UIButton Click?   Find the given code and example that explain...); //Set in the lable [myLabel setText:str]; Set UILabel text to NSString
Looking for change password in iphone application sdk using sqlite
Looking for change password in iphone application sdk using sqlite  i am trying to change old password in my iphone application my code is below please help how can i do .... -(IBAction)matchpassword{ //sqlite3_stmt
Orientation iPhone SDK
Orientation iPhone SDK In this tutorial we are going to show you how to set orientation in iPhone application. While developing the application in iPhone please keep in mind that landscape orientation is not possible in the case
UILabel Font Size
UILabel Font Size  Hi Developers, How to set font size of UILabel? I am creating label programmatically and I have to set the font size programatically. How I can set UILabel Font Size? Thanks   HI, Following
iPhone
of tools like Apple's free iPhone SDK development tool or a number of other... Objective C tutorials.   iPhone SDK programming Learn iPhone... iPhone      
UIPickerView Example
component of iPhone SDK.  The UIPickerView control allows the developer...;      IBOutlet UILabel *mlabel;    ...; and then create the property @property (nonatomic, retain) UILabel *mlabel; Your
iPhone Application Development,Mobile iPhone Application Development,iPhone Porting Solutions
the iPhone SDK to add value to your existing applications. iPhone Web... iPhone Application Development Services Rose India iPhone Application Development Services iPhone 3G is Apple developed smartphone
Iphone Comparing Strings
Iphone Comparing Strings  Hi, I am very new in the mobile application programming. I have trying to develop a small application for IPhone SDK Comparing Strings. Could any one suggest or provide any examples topics iphone sdk
iPhone Programming tutorials and examples
the concepts of iPhone SDK and iPhone programming. After completing these tutorials you... the steps necessary to master the iPhone SDK programming Learn Xcode... examples What is iPhone SDK? In this section we will see the different
iPhone Game Applications Development, iPhone Game Porting Services, iPhone Game Designing
India can develop games using the iPhone SDK to deliver high end games... iPhone Game Applications Development iPhone Game Development... the way we listen to music and download it, the iPhone has revolutionalized mobile
iPhone Button Click Sound
on clicking the button in iPhone SDK. For the audio we are going to use AVAudioplayer in iPhone SDK tutorial. First of all... create a new ViewBased application... iPhone Button Click Sound In this series of iPhone button tutorial, we
Sitemap iPhone Tutorial
feature in iPhone  | iPhone 3.0 SDK | Bluetooth Features on iPhone... Programming tutorials | iPhone Tutorials | What is iPhone SDK? | Installing iPhone SDK | iPhone News and Updates | What is iPhone | UITableViewCell
enable hyperlink
enable hyperlink  How to enable hyperlink
iPhone Mobile Application Development
Apple iPhone Software Development Kit (SDK) and Mac machine. Ever since..., and each and every feature and tool of the released iPhone SDK. We at Roseindia... etc. Our highly innovative iPhone SDK programmers aim to reach the growing
MapView Example in iPhone
MapView Example in iPhone The example illustrate how to embed or display a MapView in iPhone SDK UIView based application. To embed a Map in your iphone... in iPhone

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.