• Stars
    star
    483
  • Rank 91,050 (Top 2 %)
  • Language
    Objective-C
  • Created about 12 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The sample application to accompany my conference talk on UICollectionView.

#Introducing Collection Views The sample application to accompany my conference talk on, yes you guessed it, UICollectionView.

Slides can be downloaded from here.

##Requirements

  • Xcode 4.5
  • iOS 6+
  • ARC

##Summary It's a universal app using Storyboards and ARC and targeting iOS 6, but I mostly focused on the iPad, so some of the layouts aren't really optimized for iPhone (I didn't bother shrinking the cell size for iPhone, so not so many fit on the screen at once).

The app presents the speaker roster from various CocoaConf conferences. Each conference date is a section and the speakers at that event are the items in that section. It has 5 different layouts. Use a 2-finger tap to switch between layouts. (A 3 finger tap will switch back to previous layout, i.e. cycles through the layouts in the opposite direction.)
##Grid Layout A standard UICollectionViewFlowLayout-derived layout. Demonstrates the flow layout plus use of supplementary and decoration views. ##Line Layout Another UICollectionViewFlowLayout-derived layout. This one is adapted from the Apple sample of the same name from WWDC 2012 Session 219. Demonstrates a single line horizontal layout and use of shouldInvalidateLayoutForBoundsChange: as well as use of custom layout attributes. ##Cover Flow Layout Derived from Line Layout but adapted to look more like Cover Flow. ##Stacks Layout A UICollectionViewLayout-derived layout (not flow layout). Pinch out on the photo stacks to expand them and it will switch to Grid Layout. Demonstrates custom layouts, gestures, and custom layout attributes. ##Spiral Layout Another UICollectionViewLayout-derived layout. This one is adapted from the Apple sample CircleLayout from WWDC 2012 Session 219. Only instead of a circle, items are arranged in a spiral that wraps 1 1/2 times around and fits the screen in either landscape or portrait. It was also adapted to support multiple sections (1 spiral per screen) in a horizontally scrolling layout. Swipe up on a speaker card and it will be flicked off screen and disappear. Tap on the header to add a speaker back (expands out from center). Demonstrates custom layouts, gestures, and custom delete and insert animations.

Backgrounds by Glyphish

Best,
Mark Pospesel

Website: http://markpospesel.com/
Contact: http://markpospesel.com/about
Twitter: http://twitter.com/mpospese

More Repositories

1

MPFoldTransition

Easily add custom folding and page-flipping transitions to UIViews and UIViewControllers
Objective-C
1,810
star
2

MPFlipViewController

A custom container view controller following the iOS 5 containment API that navigates between child view controllers via touch gestures and page-flip animations
Objective-C
488
star
3

EnterTheMatrix

The sample application to accompany my conference talk "Enter The Matrix" on matrix transformations. Abstract: Matrix transformations can make your user interfaces come to life: translate, scale, and rotate. Each on its own is relatively simple and straightforward. Yet many developers are daunted when 2 or more operations need to be combined. What if you need to rotate or zoom about an off-center (or even off-screen) point? How do you combine multiple transformations into a single animation? Learn everything you need to know to get started with complex matrix transformations in CoreGraphics and CoreAnimation.
Objective-C
318
star
4

CircleLayout

fixing bugs in WWDC 2012's 219 session sample code
Objective-C
259
star
5

Animation3DSandbox

Objective-C
79
star
6

AntiAliasingDemo

Sample app demonstrating a technique for efficient edge antialiasing of static content
Objective-C
51
star
7

CALayer-vs-UIView-based-animation

Sample project demonstrating some differences between animation types as regards UIKit touch event handling. UPDATE: This was apparently a compiler issue and was fixed in Xcode 4.3
Objective-C
12
star
8

AnimationPerformance

Sample iOS app to demonstrate performance tuning of animations with Instruments.
Objective-C
10
star
9

DSTutorial

Repo to accompany my half-day tutorial "Engineering Design Systems"
Swift
6
star
10

BeaconDemo

iBeacons demo app for my conference talk, "I, Beacon"
Objective-C
2
star
11

UIKit-Re-Animator

Sample code to play with new iOS 10 animation API's
Objective-C
1
star