Results 1 to 2 of 2
Discuss iphone app tutorial #2: Simple web data retrieving using UITextView and NSURL at the iPhone Developer Exchange - Hackint0sh.org; This tutorial uses iphone sdk beta 8 As i'm lazy using UIWebView or NSHTTPRequest, i'm ...
  1. #1
    Newbie Array

    Join Date
    Jun 2008
    Posts
    3
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Wink iphone app tutorial #2: Simple web data retrieving using UITextView and NSURL

    This tutorial uses iphone sdk beta 8

    As i'm lazy using UIWebView or NSHTTPRequest, i'm getting a much easier way of fetching response from server using NSURL



    NSString *text = [NSString stringWithContentsOfURL:[NSURL URLWithString:@"http://www.google.com"]];
    if(text){
    textView.text = text;
    }

    When program loads:



    When you press the button:



    You could change google.com to your servlet and this will get back the result(better for text/csv).
    Last edited by tang; 06-27-2008 at 04:08 PM.



  2. #2
    Newbie Array

    Join Date
    May 2009
    Posts
    1
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    How do I post data to the sevlet and get xml content as reply. Example I implementing a Login screen. Have to send username and passoword.

    Please help me out here.

    Thanks

 

 

Similar Threads

  1. [iPhone SDK] bugs with UISlider, UITextView, keyboard?
    By chrisc9867 in forum iPhone Developer Exchange
    Replies: 2
    Last Post: 05-27-2008, 10:16 AM
  2. A Really Simple 1.1.2 OTB Tutorial + A few Newbie Qs
    By ecosse206 in forum iPhone "2G" (Rev. 1)
    Replies: 5
    Last Post: 11-20-2007, 05:56 PM
  3. Easy anySIM unlock package with simple tutorial
    By timehAndGod in forum iPhone "2G" (Rev. 1)
    Replies: 101
    Last Post: 10-18-2007, 05:35 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 07:03 AM.
twitter, follow us!