Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2014
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. class ExistingProjectsCollectionViewController: UICollectionViewController, UICollectionViewDelegate, UICollectionViewDataSource {
  2.  
  3. override func viewDidLoad() {
  4. super.viewDidLoad()
  5.  
  6. // Uncomment the following line to preserve selection between presentations
  7. // self.clearsSelectionOnViewWillAppear = false
  8.  
  9. // Register cell classes
  10. self.collectionView.registerClass(UICollectionViewCell.self, forCellWithReuseIdentifier: reuseIdentifier)
  11.  
  12. }
  13.  
  14. // MARK: UICollectionViewDataSource
  15.  
  16. override func numberOfSectionsInCollectionView(collectionView: UICollectionView!) -> Int {
  17. //#warning Incomplete method implementation -- Return the number of sections
  18. return 1
  19. }
  20.  
  21. override func collectionView(collectionView: UICollectionView!, numberOfItemsInSection section: Int) -> Int {
  22. //#warning Incomplete method implementation -- Return the number of items in the section
  23. return 1000
  24. }
  25.  
  26. override func collectionView(collectionView: UICollectionView!, cellForItemAtIndexPath indexPath: NSIndexPath!) -> UICollectionViewCell! {
  27. let cell = collectionView.dequeueReusableCellWithReuseIdentifier("Cell", forIndexPath: indexPath) as UICollectionViewCell
  28.  
  29. // Configure the cell
  30.  
  31. return cell
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement