IPhone:  How to enable URLs in a block of rendered text

I have a block of text that I am rendering as a table cell via an encapsulating UILabel. The block of text may optionally contain a URL. How can I prepare this view such that the link appears active to the user, and if touched, will start Safari on the URL?
Thanks.

Answering my own question, I believe the answer is to use a UIWebView, wherein links will be opened in the browser.

Similar Messages

  • [iPhone] How to POST url in safari

    Hi!
    I want my app to open url in Safari and to login.
    I know how to just open URL:
    UIApplication *app = [UIApplication sharedApplication];
    [app openURL:[[NSURL alloc] initWithString:@"http://www.somedomain.net"]];
    But there is a login form on that site. Here is it's code:
    <form action="http://www.somedomain.net/login.php" method="post">
    <td width="68%"><input name="username" class="formlogin" size="23" type="text" /></td>
    <td width="10%"> </td>
    </tr>
    <tr>
    <td>Password:</td>
    <td><input name="pass" class="formlogin" size="23" type="password" /></td>
    it looks like I have to POST params to http://www.somedomain.net/login.php
    Well, I know how to POST
    NSString *myRequestString = @"username=sampleuser&pass=samplepass";
    NSData *myRequestData = [NSData dataWithBytes: [ myRequestString UTF8String ] length: [ myRequestString length ] ];
    NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:[NSURL URLWithString:@"http://somedomain.net/login.php" ]];
    [ request setHTTPMethod: @"POST" ];
    [ request setHTTPBody: myRequestData ];
    NSURLConnection *connection = [[NSURLConnection alloc]
    initWithRequest:request
    delegate:self];
    [connection release];
    [request release];
    But how to combine it all together? Just POSTing and calling openURL does not work. Is it possible at all? openURL opens safari and GETs? What if a site could log me in on GET request with username and pass as params, would openURL work then?

    No, you cannot specify a request method in a URL.

  • After configuring my office email simple passcode option disabled in iphone how to enable it back

    After configuring my Office e-mail in Exchange, simple passocde option got disabled and "Erase data" is enabled?
    is there any way to change this, if so your advice is much appriecated.
    Thank you much!

    To re-enable a simple passcode, open your Exchange Management Console, open the properties of Organization Configuration/Client Access. Uncheck Require alphanumeric password.
    Exchange Administrators always have the option of erasing the data of a remote device, I don't think that can be disabled.

  • How to enable url autofill in Firefox 16 for Android?

    I have used about:config and turned browser.urlbar.autoFill to "true" but it still doesn't offer url suggestions. Other mobile browsers have this feature as standard.
    Device used: HTC One X
    Firefox 16.0 and 17.0

    Thank you.
    Sorry to hear that. It s standard in default browser, chrome and others though.

  • How do I protect my Verizon blocked number when texting?

    I was shocked to find that my Verizon iPhone blocked number was in fact revealed when I sent text to an Android user who was employing a little app refused by Apple named Mr. Number.  I like to know that I am safe and protected and when and when I'm not.  I like to have anonymity upon certain occasions when using my phone.  I had always placed trust in Apple for ther supposedly having my best interests in mind as they control their world and the trade-off to us, their loyal consumers, was to expect a safe and well managed environment.  I have found so many instances where this is not the case.
    After finding that my blocked number was revealed to this Android user employing his Mr. Number app, I immediately did a search and ended up at the app store and downloaded everything I could find that promised to do a similar thing, though ultimately nothing did what Mr. Number does.  I even paid for two or three of them and upon initial review, I found that not one actually even did what they claimed to do.  I'll of course be spending more time with each to see if I've missed anything, but I have to say how very very dissappointed I am in Apple for not providing more security to its iPnone users when it surly must know what we are up against.  Apple does in fact know about Mr. Number as after visiting their web site they state that "Apple doesn’t allow developers to build better calling and texting apps for the iPhone."  I surly agree with this statement.
    Apple!  Please consider the vulnerability we have as you've not allowed us to protect our privacy sufficiently.
    Are there any suggestions or resources, apps etc.., that I've not heard of?  Any suggestions to making my phone more protected when it comes to my phone number and other information associated with it?
    Many thanks in advance!

    jc.p wrote:
    just assumed that I was being protected when using it.  Not the case I find, by accident.  So much for assuming...and not getting into the fine details with, I guess, Verizon as I pay them for the basic blocing service...or at least I think I pay...maybe ints included...
    Caller number blocking { ie your number when you call someone } ONLY covers the CALL part of the service. There is NO way to block your phone number EVER when sending a text message.

  • Iphone 4 Verizon enabled IMessage but still getting charged as texts

    I'm an Iphone 4 Verizon user; I have IMessage "ON"; send as SMS "OFF". I message with another user who has IMESSAGE "ON". The message screen is blue, not green. Yet I'm still getting charged towards texts by Verizon. Does this have anything to do with being signed into apple at all times? Can anyone figure this out? Please help me, thank you.
    bayridgeguy

    Has nothing to do with signing on with Apple. If this is happening, I suggest as razmee209 did and contact Verizon. Have you tried turning off cellular or going to Airplane mode and turning wifi back on and sending. Do you  find a charge then? The charging of SMS/MMS is a carrier function, so I would believe they would need to investigate/correct.
    I do remember reading sometime in the past of Verizon having a issue with a charge such as this. Try searching the forum and see if you can find a similar post.

  • How to enable internet sharing on mac book to use my iphone?

    how to enable internet sharing on mac book to use my iphone?

    Hey PPRoy,
    Thanks for the question. The following article may assist in achieving your goal:
    OS X Mavericks: Share your Internet connection
    http://support.apple.com/kb/PH13855
    Thanks,
    Matt M.

  • HT4539 how to enable my apple id on iTunes? Somehow its disabled and I can no longer download Apps on my IPhone ??

    how to enable my apple id on iTunes? Somehow its disabled and I can no longer download Apps on my IPhone ??

    Depending on why it's been disabled you might be able to re-enable it via this page : http://appleid.apple.com, then 'reset your password'
    Or you might need to contact Apple : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page
    If it then works on your computer's iTunes but not your phone then try logging out of your account on the phone by tapping on the id in Settings > Store (Settings > iTunes & App Stores on iOS 6) and then log back in and see if that 'refreshes' the account on it

  • How to enable a disabled iphone 4s

    my bf bought me a iphone 4s from his friend he was drunk does not remember password there for iphone disabled, how to enable it with out an itune account

    You can not. You have to have the Apple ID password. Ask your drunk friend to reset the password and let you erase the phone. Simple.

  • HT4061 My iPhone 4 has been recently stolen :( and I am wondering how can I be able to blocked my iPhone 4 so the one steal it cannot use my phone pls let me know what to do thanks.

    My iPhone 4 has been recently stolen :( and I am wondering how can I be able to blocked my iPhone 4 so the one steal it cannot use my phone pls let me know what to do thanks.

    Apple does not get involved with lost or stolen items.  A carrier may offer IMEI blocking (non in the USA currently do, but elsewhere some do).  Your carrier would already know your IMEI number anyway, so just contact them and ask them about it.
    It is VERY good that you had a passcode lock on the device.  That means your personal information will be safe.  And yes, after 10 failed attempts (each with increasing time out between allowing another attempt) the device will permanently lock them out until they restore the device in iTunes.  Anyone can go ahead and restore your iPhone as new in iTunes, but that also wipes everything off it and restores it to new condition - which does mean they can go off and use it as theirs, but at least all your data is gone.
    Did you file a police report it was stolen?  Also your carrier should be told (and ask them about IMEI blocking).  Sorry it is gone, but you did the best thing possible to protect yourself and your information when you set up that passcode lock.

  • How to enable push mail for gmail in iphone 6 plus

    how to enable push mail for gmail in iphone 6 plus

    Tommacgr wrote:
    You can setup gmail account in iphone as exchange so the trick is simple and easy and push notification work after instantly . Just follow this steps http://email.about.com/od/iphonemailtips/ss/Set_Up_Push_Gmail_in_iPhone_Mail_Ste p_by_Step_Screenshots.htm
    You can only set up a Gmail account as an Exchange account if you have a paid account. Google dropped Exchange support for free accounts two years ago. That link is just a bit outdated.

  • HT1212 I followed the steps on how to enable my iphone but there still no response. Do you have other suggestions on how I can enable it? Thank you!

    I followed the steps on how to enable my iphone but there still no response. Do you have other suggestions on how I can enable it? Thank you!

    Hi Stefanie Burger,
    Thanks for using Apple Support Communities.
    iOS: Unable to update or restore
    http://support.apple.com/kb/HT1808
    Hope this helps,
    Mario

  • HT1212 how to enable my iphone after it has been disenabled?

    How to enable my iphone after it has been disabled?

    You have to restore the iPad in order to unlock it using these instructions.
    http://support.apple.com/kb/HT1212?viewlocale=en_US&locale=en_US

  • Hey Guys, My ipad is disabled, and i havenot synced it with any computer yet, and I am not using find my iphone, how should I enable it?

    Hey Guys, My ipad is disabled, and i havenot synced it with any computer yet, and I am not using find my iphone, how should I enable it?

    You will need to restore it as new. unfortunately you will lose any data not saved but you can still redownload all of your apps.
    http://support.apple.com/kb/ht1414

  • How to enable private mode from commandline, with an URL. I am a software dev and I wish to have my application open links in Firefox. Using ShellExecute(), i c

    How to enable private mode from commandline, with an URL.
    I am a software dev and I wish to have my application open links in Firefox.
    Using ShellExecute(), i can do with with commandlines like:
    firefox.exe http://support.mozilla.org
    But I also want the option to open the link in private mode.
    I am able to start firefox in private mode by doing this:
    firefox.exe -private
    However, if I add a link to the command line
    firefox.exe -private http://support.mozilla.org
    I get strange results.
    If firefox is not running, it launches 2 copies of the application.
    One that opens in private mode and the other opens in normal mode and goes to the URL specified.
    If firefox is already running, it just opens the URL in a new tab.
    No private mode instance is launched.
    Am I using the command-line syntax incorrectly?

    It will never work if Firefox is already running as Firefox will use the already opened Firefox instance.<br />
    In that case only using a separate profile will work.
    You can try to specify the -url switch as well.
    *firefox.exe -private -url http://support.mozilla<i></i>.org
    You can also look at the -new-tab switch.
    *firefox.exe -private -new-tab http://support.mozilla<i></i>.org
    *https://developer.mozilla.org/en/Command_Line_Options

Maybe you are looking for