I am making an application which can read ebooks in epub format..I have displayed all the chapters in Webview. What i want ,that these chapters should shown like a real book.Page by page..so that we can flip the page...but in the web view we have to scroll to read the whole chapter..
i want to make application similar to stanza / ibooks..
any other alternative to show the chapter page by page..or to apply the same effect in webview...??
Related
I want to develop ePub & PDF reader for iOS devices.
For PDF reader , I can display PDF in Web View. So I don't have any problem with PDF.
For ePub files, my idea is
1) Download epub files from server & extract it to Documents directory as per requirement.
2) Parse extracted files & display it.
3) Once app closed , delete extracted files from Socuments directory.
Required functionality :-
1) Increase / Decrease Font size & brightness
2) Bookmark
3) Left & Right Swipe gesture OR Curl effect like changing pages from book
4) Orientation suuport
5) Display contents from Book (List)
6) SEARCH Functionality
7) Optionally display Page number
My questions are :-
1) Does any one know a good iOS library for ePub reader other than AePubReader?
2) I saw this link for for RMSDK. Anybody know about this ? Does it support iOS ?
3) Where should I display extracted contents in order to manipulate the font size & brightness ? In WebView or TextView ?
Any knid of help is appreciated. Thanks
Use UITextView to load text by parsing each html/xhtml file. Use page view controller to get page navigation style
My app is registered for certain file types, images + pdf etc, following the guidelines
provided by Apple. My app does show up("open in" option) when pdf files are encountered
in mobile-safari, but it is not the case with image files. In the default "Photos"
app provided by apple, the "open in" option does not show up. Probably this is because
it is implemented without using the document interaction controller. But is there any
way to make my app appear in the UIActionSheet button, which appears at the bottom left
corner ?
I do not want to use the UIImagePickerController for choosing the saved images.
the only thing you can do is add this key-value pair to your info.plist file. iPhone saves pictures in ".JPG", so that's what you should put as the file type.
(if it doesn't appear in Photos action sheet, that means that Apple doesn't want it to appear. You'll just have to hope that some day...)
p.s. more information and detailed instructions here:
Registering the File Types Your App Supports
I have a PM-system in my homepage and now building a app for this.
I want to show this PM now and in the next view edit it.
Showing is very simple, because I can use UIWebView for this.
But how to have and editable UIWebView, something like a RichtTextBox in iOS for this?
My only idea was to cut the HTML complete away from the PM an then display and edit in UITextView.
Does your system provide any kind of webservice interface (like REST or SOAP)? If you want to build the PM system as a native iOS App you should forget about the uiwebview and build the user interface yourself. Get the data remotely from your PM system (as XML, JSON, whatever), parse it and update the ui elements. That way you can layout and manage your ui and data as you wish.
Edit: If it doesn't maybe you should make the views of you web app iPhone compatible (e.g. sencha touch, jquery mobile) and try e.g. Phonegap.
I am working on an app and I need to save the content of UIWebView.
I currently Use stringByEvaluatingJavaScriptFromString:#"document.getElementsByTagName('html')[0].innerHTML"
to get the html of the UIWebView, but the problem with this method is that it does not save the full content of some webpages.
So my question is How do you save the full content of a webpage including images and css
I think there is already a thread about this topic here:
iphone uiwebview download complete page with CSS and Images
Hope that helps.
i am making an app for iphone and for that i am using certain free libraries.My problem is that i want to show their complete license of nearly 4-5 pages in my application bundle so that a user can open settings in iphone and see that licensing page at one time but i am unable to do it.I have read these Specifiers for making an application bundle .
PSGroupSpecifier
PSTitleValueSpecifier
PSTextFieldSpecifier
PSSliderSpecifier
PSToggleSwitchSpecifier
PSMultiValueSpecifier
PSChildPaneSpecifier
but i want to show a page full of text like Settings->General->About->Leagl
just like in iphone through PSChildPaneSpecifier .Please help me how to do this>???
Thanks
You can create the same effect as used by Apple's iWorks apps for the license > section of the settings, without using any custom preference controller. Note this works for iOS 5 on the iPad, I have not tried it elsewhere. Use a PSChildPaneSpecifier for the initial control in the root plist. This points to the name of another plist file which will be the displayed child pane. You do not add .plist to the name within the root.plist file, it is implied. This plist file must be within the settings bundle. Next, use PSGroupSpecifiers in the child pane as the controls. For each paragraph use another PSGroupSpecifier - so the thing will scroll. Only use the Title section of the PSGroupSpecifier. The next gotcha that I found, was that by putting the strings in the plist file, the text was clipped in portrait orientation, so a placeholder string needs to go in the plist file and a StringTable used to point to a strings file. Text read from the strings file is properly kerned and displays without clipping.
The iPhone's "Legal" page is a custom preference controller which you can't use (not even with undocumented methods – you need to write a preference bundle in system locations which AppStore apps can't reach at all).
If you'd like to display the license, show it in the app.
I think you are going to need to use something like a UITextView, just make it non-editable. You can make in unobtrusive in your app but I think that is the only way to have 4-5 pages.
I don't think there is a nice way of displaying this in the preferences bundle. Personally I would either provide a series of url links or bring the preferences into the app itself. There is a good framework on github here that you may be able to modify.