As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I have a huge html file with data programmatically changing. I want to convert this html into PDF and email it as an attachment. Can someone please suggest can I achieve this?
If you want to create all "image" PDF, which means all text will be image (no vector) it's very easy. Essentially it is like below
Open HTML in UIWebView
Capture the web view, part by part by rendering it into an image context. In other words, we will take a snapshot of the web view, render it into an image context, and save it to our documents directory. We will then programmatically scroll the web view, again take a screenshot and save it, and repeat the process till we reach the end of the web view.
See the details here
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I have a web-service that transforms an uploaded pdf into a flipping-book. I wan't to create an iOS app that allows the user to upload their pdf and recieve the flipping-book. What possibilities are there to upload pdf from iPhone/iPad ?
Is it possible via iCloud? Are there any other options?
You can probably register your app to open pdf files from whatever sources (like from mail attachments), here's an example of how it is done: how to register the app to open the pdf file in my app in ipad
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
My app has a table view, for which the data used to fill it up were from remote service, the data is also expected to change on demand when user tap on a refresh button. Based on that, I am wondering what would be the best design pattern for the scenario, anyone can provide some suggestions or samples?
MVC?
Edit (to try and be a bit more useful):
Model: your own class for this that communicates with the web-service and returns data to the controller as requested. You'll probably download the data and parse it into arrays depending upon how you want to sort/manipulate it.
View: your UI as either a .xib or written in code or a combination of .xib and code
Controller: the table view controller
I imagine most of the work will be in the model.
You could check out the LazyTableImages source code sample from Apple.
and
You should be able to get a prototype up and running pretty quickly using hard-coded data in arrays in the model, and then at a later date modify your model to retrieve real data from the web-service.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I would like to implement a project in which the recorded audio s converted into text.
I could do this using mturk where the recorded audio is uploaded and stored some where in cloud and the link is forwarded to the mturk but this would take longer time and it would be better if I could implement anything that does this task instantly and from iphone itself.
Is there any ways to do this ? DO i get some custom framework to work with voice so that it converts the audio into text.
Your best bet is looking at something like
OpenEars
http://www.politepix.com/openears/
You can use that to do speech recognition and text to speech and has some instructions on how to implement with iPhone
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I would love to use a UIImagePickerController to browse and view images from my app's bundle. However this functionality doesn't seem to exist. Is there a library that replicates the functionality of the photo browser, but can use a list of images from the app bundle?
When GitHub is back online, check the Three20 repository of joehewitt with some awesome iPhone UI stuff. I believe it is the TTThumbsViewController you may want to take a look at.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I want to create a slideshow on iphone. I don't know if there is already a sample code or a lib that already do that.
Thanks for your help
Joe Hewitt who created the Facebook iPhone app open sourced the code he wrote to create the Facebook application. Most notable is his image viewer that he created. I am certain if you checkout his work you can find what you are looking for. His project lives on github.
https://github.com/facebook/three20/
Reference to his work from his website:
http://joehewitt.com/post/the-three20-project/
Check out the WWDC 2010 Session entitled "Designing Apps with Scroll Views."
The source code is here:
http://developer.apple.com/library/ios/#samplecode/PhotoScroller/Introduction/Intro.html
And this is a handy image-slicing tool:
http://iphonedevelopment.blogspot.com/2010/10/cutting-large-images-into-tiles-for.html
If you just want to show different pictures one by one, you can simply use, for example, NSTimer, that will change content of your image view. It doesn't need any lib.