Zoomable timeline with UIScrollView - ios

I am working on making something like this: http://almende.github.com/chap-links-library/js/timeline/doc/
It's a zoomable timeline for calendars and such. I began with UIScrollView, but soon realised that this will be a huge hassle. I only found This repo, it looks bad, and its vertical. In addition its not zoomable.
This isn't too rare of a user interface object, so i suspect there are some repo for it that i'm not finding. If there is, can someone please link it?
If not, it would be great if someone could explain me how I can make one myself, or explain something, just give me some insight and get me motivated. (I'm a newbie programmer, help is good)
-Do i have to handle zooming with CA and path drawing instead of UIKit?
-Is UIScrollView more suited for this than say, UICollectionView, or just a custom made UIControl?
-How do I make scrollviews zoomable only horizontally?
Apologies for the horrible question.

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.

Scrolling UICollectionViewCell to background instead of vertical

I'm trying to recreate the Shazam Discover UI by subclassing UICollectionView/UICollectionViewFlowLayout.
I've got as far as paging the cells and making them the right size, however, I'm having trouble getting the cells to scroll to the background, as in, I don't have a clue on how to get it done, I've searched everywhere but can't seem to find it.
An example of what I'm trying to achieve:
Any help/tips on how I could do this would be greatly appreciated.
edit: I ended up building my own solution:
https://github.com/JoniVR/VerticalCardSwiper
You could use third party libraries to achieve the same.
You may use StickyCollectionView. This is an Objective C based library. I believe this one with some customization will help you to approve this.

How to make a pull-up View in iOS (similiar to FourSquare)

I want to make a a sliding up like FourSquare app.
Like this:
What I want to achieve are:
The UITableView goes all the way up to UINavigationBar.
It drags along with my finger's position.
My app also have a GMSMapView below (Google Map's API, similiar to FourSquare), I don't want the map responses to my gestures on the UITableView, I want it stays still.
Works both in iOS 6 and 7 and iPhone 4,5.
Does anybody have a framework, github's link ... that can help me fulfill this ?
Thank you.
I have been working on something very similar in the past days. This answer is actually quite good, but you will suffer a bit in terms of performance. After more tweaking, I used parts of this library. You don't need to use everything, but keep in mind the following when choosing a library:
Libs that base the movement of the map on the map.centerCoordinate are less performant than libs that base the movement on the map's frame.
You can also read a bit from this tweets exchange I had.
My thoughts about what FourSquare actually did, is that in the beginning they are using a screenshot of the map, so they are not really using a MKMapView, but an UIImageView. Once you touch it and you animate it, they switch between one and another and they start using a map. I will be using Reveal App plus this to know exactly what they are doing.

How can I get a slot machine effect in the IOS SDK with text?

I need to create a list of words then have the words cycle through in a slot machine effect when swiped from top to bottom.
the only issues I'm having problems figuring out is the scrolling text part. UIPICKERVIEW doesn't cycle around (plus I need to only show one option at a time). I've hunted for examples and/or tutorials regarding this but haven't found anything that points me in the right direct.
Anyone know of a tutorial or have suggestions where I can get started or further my research? thanks.
You could use iCarousel for this:
https://github.com/nicklockwood/iCarousel
Run the Basic iOS Demo and select the Cylinder carousel type in vertical orientation with wrap on. If that looks like what you want, the documentation will explain how you can set it up in your project.

How to implement auto scroll view using corona sdk in lua programming?

I want to add a scroll view and it should scroll automatically (auto-scroll). Is there any way to achieve it, please share your suggestions or ideas
Thank you, Madan Mohan.
If you mean "auto scroll" as the screen moves with the character then you should take a look at Lime
http://justaddli.me/
http://developer.anscamobile.com/forums/lime
scrollView is made more for making small windows you can drag up and down to get at other things on it.
I'm not sure if you've already found your own answer or not by now but I'm gonna answer it anyways.
In Lua using Corona SDK, there's a piece of code here at ANSCANA Comunity:
Corona SDK-Lua ScrollView
It is a scrollview code in Lua, but I want a Horizontal one, which implies that one page must be twice the size even for an Android app, which I am making ;P
Hope this help :D

Resources