iPhone SDK: Grab HTML and place into Tableview Cell - iphone

I'm just wondering if it's possible to grab a specific piece of html from a webpage and place the content into a tableview cell?
The reason I ask is because I have a detail page which has a list that I would like to be dynamically updated everytime the webpage is updated.
Thanks!

Related

Swift: How to navigate to a PDF page after clicking TableViewCell from another VC

I am building an app, where i have loaded a PDF of 300 pages. This PDF has lot of content, which are added as keywords to the tableViewCell in another VC.
When i tap any cell from VC, it should navigate to the next VC, where i have a UIWebView which has the PDF.
Now the ask is, when i press this cell, the new VC directly should navigate to the given page where the information related to that keyword is present.
Any idea or points on how to show a given page in PDF will help.
Thanks.
Because you're dealing with web, it is hard to have native navigation. I know from web development experience that to navigate to a specific part of a website, you can use anchor points/tags. I'd recommend looking into those. With them, you can change the URL from somepagehere.com to somepagehere.com/#page-1 or somepagepagehere.com/#-2, etc. Then, with the the UITableView you can point directly to these anchor points.
Let me know if this helps!
From your questions, it seems like you have a 300 page PDF file from an online location and you gather all the menu in your table view and each cell has the same url pointing to the link of the PDF.
This is not a good practice on the first place. This means that you are reloading the PDF file again and again when user simply want to see contents from another menu. It's also extremely hard to deal with paging problem from a web view.
Instead, if your pdf is well formatted(meaning it has a menu page and when you click on them from Adobe PDF reader, it can jump to the page), simply use this PDF reader. It also provides you the menu by itself and you don't need to have a table view controller and a webview controller. Moreover, you just need to put PDF file in your main bundle and never need to download every time.

Display html page in webview and get interact with that html page

Hi All can some one help me ,I am new to iPhone .
My requirement is I have to display HTML Page in webview .So if i click one button then it should go to another view .So How i can i do it ,
Your button points to a whatever://dosomething URL, and your webview's delegate intercepts this in its webView:shouldStartLoadWithRequest:navigationType: method. Returning NO and doing something based on the URL should allow you to do what you're trying.

PDF inner links not working iphone webview

I am Using pdf in my application .i am loading PDF in webView .In that PDF i have index as a first page click on list item it should go that particular page and in that PDF for every page top option is there clock on that it should go first page .how can i solve this problem .help out me
thank you
i am loading PDF in webView .In that PDF i have index as a first page click on list item it should go that particular page and in that PDF for every page top option is there clock on that it should go first page
check its code it will help u...
im using it my app
https://github.com/vfr/Reader
try this code
it may help you
https://github.com/vfr/Reader

fitting the webview page in iPhone without scroll depending upon the data present in a html file

can any one help me..am doing one webview application in iPhone. I am very new to this is technology...my requirement is when am displaying the html content into the webview page depending upon the data the webview page has to fit that means no scrolling comes the page should fix.
Try this Code :
self.myWebView.scalesPageToFit = YES;

"Load More" in UITableView

I'm loading an RSS feed into a table view. I'm going to load 10 entries and then would like it say "Load More" in the last cell or somewhere below the last cell, so when the user clicks on Load More, the rest of the RSS feed gets loaded. Since the RSS comes off of my web site, I can program it to get the 10 or all entries on the server side (using a query string or something).
The question is how to render a table such that the last cell has a Load More link that the can clicked to call a method to load the rest of the feed (and then when the entire feed is loaded there is no more "Load More" link).
Due to the way that UITableView's work (i.e.: they request cells/cell content as required) what's the value in the 'load more' link? (Especially as you'll presumably need to load the RSS feed in its entirely anyway.)
In other words, shouldn't the act of the user scrolling the table view be sufficient?
It's also potentially a bit confusing from a User Interface perspective - would having a "load more" at the bottom load older posts or newer posts? Where would these posts appear? At the top of the view or the bottom? (I'm presuming that you're ordering the cells in "most recent first" order, as this probably makes sense if you're consuming a feed.)
Update
However, if you really want to do this I'd suggest initially making your data source only tell the UITableView that it has "n"+1 elements, the +1 being a cell that contains your "load more" text. (You could format the cell to look different, using the backgroundView method, etc. on the UITableViewCell you supply.)
When the user selects this final cell you'll need to capture this as per usual, work out if it's the fake "load more" cell and if so, tell the data source that it should reveal all of its contents to the UITableView. Then you can simply get the table view to reload itself (via the reloadData method) and all should be well.