aspose file tools*
The moose likes iOS and the fly likes Inserting web content in your native iPhone application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » iOS
Bookmark "Inserting web content in your native iPhone application" Watch "Inserting web content in your native iPhone application" New topic
Author

Inserting web content in your native iPhone application

amita Dewan
Greenhorn

Joined: Jul 26, 2010
Posts: 9
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.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
amita Dewan
Greenhorn

Joined: Jul 26, 2010
Posts: 9
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.
Alaa Nassef
Ranch Hand

Joined: Jan 28, 2008
Posts: 467
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


Visit my blog: http://jnassef.blogspot.com/
amita Dewan
Greenhorn

Joined: Jul 26, 2010
Posts: 9

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

Joined: Jul 26, 2010
Posts: 9
Please tell me from where can I get drug store or Traffic API to bind in with UIWebView
Please reply
Rory Lewis
Author
Greenhorn

Joined: Jul 16, 2010
Posts: 5
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/
 
wood burning stoves
 
subject: Inserting web content in your native iPhone application