viewing documents in ios10 using qlpreviewcontroller or uidocumentinteractioncontroller - pdf

does anyone know how to get rid of the thumbnail preview on the right side of viewer in ios10 when using qlpreviewcontroller or uidocumentinteractioncontroller. covers part of document and seems to be permanent now. i would take either it swiping off the page, being able to possibly inset the right side of the document, or adding a button to show or hide. thanks for any help]1

No, this is not possible. The user can tap the document to go full-screen and hide the thumbnails view.

Related

Fixed logo in pdf

I want a logo on the right corner of a pdf file.
It needs to be clickable and has to stay fixed so if the reader scrolls down its has to stay on the same place so the logo stays in the screen.
Someone knows how to do this?
This is not possible with PDF pages. Any visible content belongs to a page so when the page scrolls, all the page related content scrolls.
I think this is impossible in PDF. But, you can do that with jQuery on website.

Swipe without actually swiping in iPad?

Is it possible to make a view move either to the left or right in the iPad, when I tap on a button, instead of actually swiping on the view.
This can be seen in the iPad when I'm in the screen after the search screen, and I install an app, the screens move to the left by itself and the app sits in the right place and starts installing.
Any suggestion will help.
The home screen is actually a UIScrollView with paging enabled. So it just moves to the next page (with scrollRectToVisible) if a new app is installed. So if you want to have something like that, I guess you have to implement a paging UIScrollView. Just search for that and you will find a lot of good tutorials.
Some further resources:
UIScrollView reference documentation
A paging UIScrollView tutorial

Disable scrolling in UIWebView

In my iPad app, I am playing some PDF and Videos on UIWebView. I need to scroll pdf to read further pages. But at the same time the videos are also scrollable, which I want to disable. I am playing all these files on a single web view. I can write a condition to disable scrolling on a video and enable on a PDF. But I have no idea what to write inside the condition. Can anyone help me disabling scrolling of UIWebView.
Thanks
PC
You can disable scrolling of an entire UIWebView by:
webview.scrollView.scrollEnabled = NO;
As far as I know, it is not possible to disable scrolling for just one section of a UIWebView.
webView.userInteractionEnabled = NO;
Please note that this technic disables touches and interaction on the web view

iOS layout: alternative to tabs?

I'm working on a iPhone app which shows an mobile webform in a UIWebView. I'm using a default iOS layout with a navigation and tab bar.
The mobile webform is displayed in a UIWebView in the white area. Since the webform has a lot of input fields, we really need as must space for it as possible. Because of this, we are planing to remove the tabs in the bottom. Over time, there will be more tabs/sections, so it is not a solution to just add a button for each section in the left side of the navigation bar. On a iPad a popover could easily be used to handle this.
Is there a standard iOS layout mechanism to handle this change of sections/views without using tabs?
You could do something long the lines of Path or the new Facebook app and have the "table of contents" behind the Navbar and the navbar slides away (along with the child view) to reveal it. When done right (ie smoothly) I think the effect is really cool.
This would also work great as you add more and more options, since the table could just scroll.
Here is a framework that might be you started: http://www.cocoacontrols.com/platforms/ios/controls/iiviewdeckcontroller
I would consider replacing the navigation bar's title with a control that lets you switch between tabs. You can assign the bar's titleView property to a control or a button and it will generally do the right thing.
If you're limited to 2-3 tabs, you could simply use a UISegmentedControl.
If you want more, you could use a button which, when tapped, pops up a view that allows you to select the view you want. This could be a modal table view, or you could slide up a UIPickerView from the bottom of the screen, similar to the keyboard.
I use this technique in an app of my own, screenshots here. Tapping the button cycles between views (in this case, I'm changing the contents of the table cells); tap-and-hold slides up a picker.
Another possibility would be to arrange your different forms on pages in a scroll view with a page control at the bottom, à la Weather. The best option, though, if you’re going to have a particularly long list and want to keep your screen real estate, is probably the FB/Path-style sidebar table.
I ended up using a UIActionSheet but I think it in other situations would be more stylish to use a controller like the IIViewDeckController.

custom scrollbar in UIWebView iphone

My UIWebView has a huge data to display and the default scrollbar that comes with UIWebview takes lot of time to scroll.
Is it possible to implement a scrollbar on which user can tap and drag that were he wants.
Any hint in the right direction would be highly appreciated.
Waiting for your reply.
Thanks in advance
It depends on the type of the contents you are displaying in UIWebview.
Did you try make use of Javascript calls to scroll to certain ids within your html page?
Take a look at the wikipedia application or Wikipanion for iPhone for example... They have navigation screen so the user can jump to the section of their interest without the need to scroll the whole page.
hope that will help.