Text reading experience in iOS app - objective-c

I want to implement a great text reading experience in my app, similar to "Pocket", that would look a lot like this:
Basically, I'd like to have control over the text font size and font family while loading local HTML files in a UIWebView.
Could anyone point me to the right direction? Are there any frameworks or libraries out there that provide the base for such experience?
Thanks in advance.

A simple answer is: don't. Instead load it into a UITextView. You can easily change the font size with it, as on HTML you would have to modify the file instead of calling 1 line of code.

Related

How to get the QLPreviewView's content size?

I would like to know how I can get the QLPreviewView content size? It seems that the API doesn't have any methods to get it. Thanks.
QLPreviewView won't give you that.
But since you are supposed to give QuickLook a path to reach files, you can get yourself size of them with file manager.
Take a look at this topic for example.

Printing a Vaadin Layout

I want to print a Vaadin layout and all of its components (text, tables, html, charts, etc), sending it to a pdf preview, hopefully getting exactly what I see in the screen (for that specific layout)
thanks!!!
The solution, seems to me, that is not something Vaadin is able to provide. You have to extract the html specific to you desired layout and, along with the styling, delegate to a tool that might convert it properly to a PDF, like jsPDF, but you need to integrate it into your Vaadin application.
If you're interested I can try to write some code that will help you. If so, let me know.

Dynamic User Interface in iOS

Im struggling with a thought here. Let's say a user has his own CMS where he can fill the content for our app. One of his options is to create a view by uploading images and typing text. Well keep it very simple and imagine he only uploads a image (320 x 20) and some text. So an image on top and some textlines below.
What would be the best way to let my app know of this layout and download the contents? I was thinking of a downloadable XML file which defines the layout but don't really know how to implement this or if its even the best way.
Oh and the content and layout must be downloadable for offline use too.
Another option what I was thinking of is showing the layout in a webview but I can't figure out how to download the mobile website for offline use.
A push in the right direction would be appreciated!
We use a custom XML and it is working good. All texts inside 'label tags' are in XHTML
remember to:
be specific when defining the xml to save some effort
write a limiting XSD! So nothing 'surprising' creeps into the xml
remember not include everything in ONE xml file as that would get rather large rather quickly. Choose a scheme for portioning the XML

How can I allow the user to style font in NSTextView using interface buttons in xcode?

In short:
I am trying to find information about text styling inside an NSTextView. Bold, italics, indentation, making a word completely uppercase and setting backdrop colors to certain lines.
Any and all info is welcome. I've been looking around the web for docs on the subject and only managed to find a few things that seem to be part of an iphone framework. I'm sure there must be something out there and that I'm just searching for the wrong words.
A few details:
I am not a developer. I am a motion graphics artist and screenwriter. I do know html, php, javascript, css and several scripting languages (all very similar to javascript) used by different graphics apps.
I am not very proficient in objective-c but I've taken up writing a screenwriting app as a bit of a side project. I've been teaching myself objective-c from a book call Cocoa Programming for Mac OSX and using the code I've created from the examples in the book to create my app using Xcode. Styling text was not covered and I am at a loss as to how to approach it.
Screenplays have very specific formats. Using css I could create this format easily so my first thought was to find out if text inside a NSTextview can have css applied to it. I've not found anything that could answer this. Of course I am probably way off with this approach.
Again, any help or anyone who can point me in the right direction would be extremely appreciated.
Thanks!
-Omar
You can't do this because it only accept one style.
You have to deal with UIWebView Tutorial for this and use your CSS.
Or you can use some code like EGOTextView. I do not test this but I think it will be the easiest way for you.

How to select text in PDF file in objective c?

I am right now working with one pdf based application in ipad. Now i am able to display the pdf file in the ipad,but now i want to show some annotation based operations on the same pdf file. and for the same purpose,i need to select the text.Is there any function available that may help to select the text to perform the operations?
Thanks in advance.
EDIT :
I surfed net and found some code that was helpful for UITouch in the following link
but am not getting way to implement it for my purpose. Can Somebody show me a path?
Kindly show me a path.
This is the best resource I have found on SO so far: Fast and Lean PDF Viewer for iPhone / iPad / iOs - tips and hints?. Maybe it will help. There is nothing on selecting text specifically, but maybe the "Getting raw test" and "Searching" sections will help you.