Scrolling UICollectionViewCell to background instead of vertical - ios

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.

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.

iOS customise user interface

Hi all I would like to make a horizontal scroll bar like below in iOS APP.
I read through lots of iOS programming book, none of them teaches me how to do custom UI. Can someone tell me, what knowledge I should learn in order to make this?
Thank you.
You should be using UICollectionView to make your life easier. There are many tutorials on that in which you probably just want to lay out your cells in one row and many columns to achieve the horizontal scrolling effect. Otherwise you may want to employ external libraries like this if you prefer a plug and play solution.

How would I go implementing a stacked card-based view?

Would anyone mind pointing me in the right direction of making a card view just like the one in the image shown below? I've been scouring the internet for over an hour trying to find a tutorial (in Swift) and all I could find was making the illusion of separated cards like this and this.
Any help or input would be greatly appreciated!
It wouldn't be that hard to do this yourself with custom code.
You could also use either a UICollectionView. Getting the look you want with a collection view is doable but would require some customization.
Yet another option is a third party framework like iCarousel (by Nick Lockwoods) iCarousel is very flexible and powerful, and comes with tutorials demonstrating a number of different options.

Swipe up UITableView from bottom

I would really like to do this with a MapView as background, and a TableView a foreground: http://youtu.be/ZrZ_B7DRqdo . Does anybody know a way to do this?
I would recommend following this tutorial but be aware, there is an underlying bug in iOS8 using this solution which you can solve easily like others did in this answer.
Another possibility is using SCStackViewControllers library available in github which will provide multiple examples on how to stack and animate transitions between multiple UIViewcontroller.

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.

Resources