• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Inserting web content in your native iPhone application

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to build iPhone application which is displaying data in UITableView and also inserting web content through UIWebView. I am totally new to Iphone. So please provide me link where I can find the code and its explanation.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A UITableView uses UITableViewCell to display each row. You can create your own custom cell in code or in Interface Builder.

In the UITableViewCell you just add a subview of type UIWebView and load it with your URL. Now note that if your web url has lots of data, it might be really hard to read in a cell in a tableview.

I will look for a tutorial link for you.

Mark
 
amita Dewan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your effort Mark.
I am trying to build a drug store application for selected U.S. cities which will be displayed in a TableView. And tapping on a specific city will display its drug stores in tableview.
or
application will ask for a pincode input and will display the desired stores in a tableView.

If you can provide me any related or similar tutorial link it will be really helpful.
Thanks in advance.
 
Ranch Hand
Posts: 471
Mac OS X Hibernate Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

amita Dewan wrote:Thanks for your effort Mark.
I am trying to build a drug store application for selected U.S. cities which will be displayed in a TableView. And tapping on a specific city will display its drug stores in tableview.
or
application will ask for a pincode input and will display the desired stores in a tableView.



So why the web view? Why don't you just display the names and addresses of the drug stores in the table view, and when the user clicks on one, you open a new controller with the web view in it? Just a thought
 
amita Dewan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

It is really difficult for me to understand your theory, only because I am new to iPhone development. Please help me by providing the sample which can be good starting point for me. Thanks in advance for everybody's help.
 
amita Dewan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please tell me from where can I get drug store or Traffic API to bind in with UIWebView
Please reply
 
Author
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Mark Spritzler wrote:A UITableView uses UITableViewCell to display each row. You can create your own custom cell in code or in Interface Builder.

In the UITableViewCell you just add a subview of type UIWebView and load it with your URL. Now note that if your web url has lots of data, it might be really hard to read in a cell in a tableview.

I will look for a tutorial link for you.

Mark



This is correct. Here is a possible tutorial. http://iphoneincubator.com/blog/windows-views/display-rich-text-using-a-uiwebview

http://www.rorylewis.com/ipad_forum/
 
reply
    Bookmark Topic Watch Topic
  • New Topic