How to make the webpage scroll automatically in an iOS app? - ios

I'm doing my graduate project.
I'm making an simple view ios app that detects your lookat point using ARFaceAnchor and use this information to scroll the webpage.
BTW, the webpage is displayed by WKWebKit, not SafariServices.
I didn't find the relative functions to solve this problem.
Thanks very much!

Related

Automatic scrolling in a PDF using Swift

I'm a newbie to iOS and just recently finished the Swift developer tutorial on the Apple website. I want to create a program that loads in a PDF that can automatically scroll, like a teleprompter. I was looking through the PDFView documentation, but could not find a scrolling function. The closest things I could find were go but I don't understand what it means by rectangle and scrollSelectionToVisible which I'm not quite sure what it does. Any help / tips / general Swift knowledge would be appreciated! Thanks so much!
The only way to switch to vertical scrolling is to start all the way from scratch at CGContextDrawPDFPage
If the selection is not visible, scrolls view so that it is.
You can put pdfview on the top of UIScrollView and then give a timer to let it auto scroll like PDFExpert.
You can visit the demo from Apple.
Visit hereZoomPDF
It needs time to make it happen, nobody can tell you how to make it happen quickly , based on my experience it's the core code about PDF application such as PDFExport, but the mind is same, you can do as I said.The PDF inherits to UIView, so you should know why it can support auto scroll. Chose UIScrollView , it's right choice.

HERE Map SDK iOS (Lite Edition) Usage in UIScrollView

This is my View skeleton:
I have implemented the HERE Map for iOS (Lite Edition). I have the MapViewLite inside a UIScrollView. I want the map view and the remaining UIView to scroll simultaneously, but always the UIScrollView intercepts all panning events. In HERE Map for iOS (Starter Edition), there is no scrolling issue, but a specific image marker doesn't display. I updated this SDK, and now I experience this issue.
Any help will be appreciated.
For this first app using the HERE SDK, we want to load one of the default map styles the SDK is shipped with.
mapView.mapScene.loadScene(mapStyle: .normalDay, callback: onLoadScene)
Please refer below documentation and examples on GITHub to run sample code. Also please share the error if any.
https://developer.here.com/documentation/ios-sdk/dev_guide/topics/quick-start.html#integrate-the-here-sdk
https://developer.here.com/documentation/ios-sdk/dev_guide/topics/examples.html

iOS Swift - pull tray open to expand content

I've been searching for a library or sample project that implements the following functionality, but unfortunately haven't been able to find much. Could anyone share any thoughts or point me in a general direction if experienced something similar?
I'd like create a pull-out view controller/tray whose interaction is very similar to the Google Maps iOS app (http://i.stack.imgur.com/l1QHt.png). When a user taps or pulls-up the snippet pane, the view expands until fully maximized. Essentially the same interaction as seen in the Maps app.
I'm happy to implement from-scratch if a library doesn't exist, but regardless wanted to seek any suggestions/insights before getting underway.
Thanks again for your help & advice!

Developing Notebook carousel in iOs app

I want to create an iOS app to manage notebooks, i already know how to implement most of the functionality, but i would like to add a notebook carousel in the app like in the attached image. I have already googled for related terms searching for a way to do it with no avail.
It should animate on click and simulate the opening of a book, you can find this functionality in apps like penultimate, outliner and many others.
Can anyone put me in the right direction?

Display iOS Compass Within iOS Native Web App Page

I am trying to figure out how to display an iOS Compass directly onto a page I created from within my iOS Native Web App. I don't want to tap on an area and it bring me to the compass application.
Essentially, I am working on a project where the accelerometer can be tested with the rotation of the device by using the iOS compass directly on my page without having to go directly into the compass application.
(It's kind of hard to explain. My apologies for that.)
Img Ex.
http://i442.photobucket.com/albums/qq145/inmyeyesurpsycho/AVF%20Project/ScreenShot2013-04-14at65356PM_zpsa0ab43e8.png
(The Password Is: compass)
If someone has any advice on what I can do to make this happen, I would really appreciate it.
P.s.
It has to work as an iOS Native Feature.
As far as I can tell there's no way to access the Accelerometer through a safari web app. So, you'll need to use something like google GPS to figure out that info.

Resources