Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ExistingProjectsCollectionViewController: UICollectionViewController, UICollectionViewDelegate, UICollectionViewDataSource {
- override func viewDidLoad() {
- super.viewDidLoad()
- // Uncomment the following line to preserve selection between presentations
- // self.clearsSelectionOnViewWillAppear = false
- // Register cell classes
- self.collectionView.registerClass(UICollectionViewCell.self, forCellWithReuseIdentifier: reuseIdentifier)
- }
- // MARK: UICollectionViewDataSource
- override func numberOfSectionsInCollectionView(collectionView: UICollectionView!) -> Int {
- //#warning Incomplete method implementation -- Return the number of sections
- return 1
- }
- override func collectionView(collectionView: UICollectionView!, numberOfItemsInSection section: Int) -> Int {
- //#warning Incomplete method implementation -- Return the number of items in the section
- return 1000
- }
- override func collectionView(collectionView: UICollectionView!, cellForItemAtIndexPath indexPath: NSIndexPath!) -> UICollectionViewCell! {
- let cell = collectionView.dequeueReusableCellWithReuseIdentifier("Cell", forIndexPath: indexPath) as UICollectionViewCell
- // Configure the cell
- return cell
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement