Questions tagged [collectionview]

The Marionette CollectionView displays a Backbone collection object by rendering each objects through the specified childView View object.

Docs

1294 questions
-1
votes
1 answer

Swift 3: How to Insert Array of an NSObject to another Array

I have an Array of [Hashtag]. The Hashtag NSObject simply holds a variable for the hashtagName which is a String?. One array is a categoriesArray and the other is a fashionArray. What I would like is when I tap a certain indexPath in my…
Jimmy
  • 285
  • 3
  • 11
-1
votes
2 answers

change uicollectionview numberofsection when previous value clicked

I'm trying to show the list of variable carmaker in collection view at first then it will change the list into variable Honda when users click on Honda from the first collection view. every time i ran the code from below it give me an error "fatal…
freelixa
  • 111
  • 1
  • 6
-1
votes
2 answers

display images from phone gallery into cell in collectionViews

func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath) { imagePicker.allowsEditing = false imagePicker.sourceType = .PhotoLibrary self.presentViewController(imagePicker, animated: true,…
Ali Jaber
  • 133
  • 1
  • 12
-1
votes
1 answer

Collectionview gives 1 pixcel extra specing

I have created collection view with 3 cell and my cell size is 106 in iphone 5s but collection view gives 1 pixel extra space between cell.
Nand Parikh
  • 205
  • 1
  • 2
  • 9
-1
votes
1 answer

Collection View Cells alpha is changing when it is not supposed to

I basically have a collection view where the cells have a view and that view's alpha decreases when the cell is tapped on. For some reason, when I scroll in the collection view, other cells views are also changing alphas and then the original cell…
Sampath Duddu
  • 277
  • 1
  • 5
  • 14
-1
votes
1 answer

ImageView and Button inside CollectionView

I am building my first iOS-App using Swift and I am stuck. I have a CollectionView and inside one of the Cells there is a button and an imageView. What should happen is: I click the button and the imageView shows another picture. I already created a…
-1
votes
1 answer

How to access collectionView from a different class in Swift

I subclassed CollectionViewCell were I add different labels, animations and buttons. I am trying to delete a cell and update the collectionView in one of my methods in this class(CollectionViewCell) but I'm unable to access collectionView from here…
Victor --------
  • 512
  • 1
  • 11
  • 29
-1
votes
2 answers

Perform segue from tapGestureRecognizer in UICollectionView?

I learn Swift by myself. I know how to perform a segue from a tableView because it's "clickable" Cells. My question is : I have a Collection view composed of UIImages. UIImages not "clickable", I placed on TapGesture. How do I perform segue from…
Quentin F.
  • 17
  • 2
-1
votes
1 answer

iOS card / grid layout

I have to design a UI similar to the following. The question is I'm somewhat lost in what controls I should be using to achieve this. Any assistance on right direction is highly appreciated. Here are few ways I thought of doing but not completely…
nsuinteger
  • 1,503
  • 12
  • 21
-1
votes
1 answer

How to access specific buttons on a collection view tin 4 buttons and 1 image view

I am currently populating a collection view with images but at the same time have some button option. How can I know which button I press if let's say it populated about 4 of those cells? How do I make a code to handle that event?
-1
votes
1 answer

Get images from internet CollectionView

This is my first question so excuse me for being a newbie. I am working with a CollectionView that shows images downloaded from the internet. The problem appears when I try to do it asynchronously. @interface myViewController { NSArray…
-1
votes
2 answers

Play audio when uicollectionviewcell is clicked in iOS

I want to play mp3 file file when user select a collection view custom cell. but it is not playing . here is the code i have written for this purpose -(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath…
Atif Saeed
  • 27
  • 4
-1
votes
2 answers

Tracking touch in iOS

I am creating a word search game for the iPhone and am having trouble figuring out what is the best approach to take for the main component of the game (the word search puzzle). I am currently using a collection view to display the puzzle. However I…
Felix Hidalgo
  • 25
  • 1
  • 2
-2
votes
1 answer

Maui: Change gridView template conditionally

I have a grid inside a CollectionView and I need to change the layout based on a certain condition, changing dynamically the size of the columns and rows and hiding/showing some specific columns. The datasource of the collectionView is always the…
Innova
  • 334
  • 4
  • 18
-2
votes
1 answer

WPF's CollectionView Filter calls constructor of elements in list

I have a CollectionView created from an ObservableCollection. I attached a Filter to the CollectionView, and after the filter fires for each element, my Item's constructor is called once for every element in the ObservableCollection. Why does…
Marcin
  • 131
  • 6