FAQ Database Discussion Community


first tap not registering on collectionView Xcode

objective-c,xcode,ios7,uiviewcontroller,collectionview
I have a collectionView with an array populating it. I have it set up that when a cell is tapped a second modal view is presented. The problem is that the first tap is not recognized. The collectionView in storyboard, along with the cell and the image inside the cell...

Cannot load data from Parse in PFQueryCollectionViewController Swift iOS

ios,parsing,swift,collectionview
I have problems loading Data from Parse into my PFQueryCollectionViewController. This is my WaterfallFeedCollectionViewController Class: import UIKit import Parse class WaterfallFeedCollectionViewController: PFQueryCollectionViewController, CollectionViewWaterfallLayoutDelegate { @IBOutlet var theCollectionView: UICollectionView! //Random high Cells lazy var cellSizes: [CGSize] = { var _cellSizes = [CGSize]() for _ in 0...20 { let random = Int(arc4random_uniform((UInt32(100))))...

How to destroy or detach a CollectionView

wpf,collectionview,inotifycollectionchanged
I observe an odd behaviour of WPF ItemsControls: If a set the ItemsSource to an object which implements INotifyCollectionChanged and after that set the ItemsSource to null, the CollectionView which was created to provide the data to the ItemsControl still listens to the CollectionChanged-event of the source object. If now...

How To Make All Cells Look The Same On All Devices

ios,swift,autosize,collectionview
Oki so first this is what i want it to look like: http://i.gyazo.com/e76bf129ee7ae96ce0e2d84baba8e9a8.png But on different screens it looks like: http://i.gyazo.com/c756202d83c773b285e00ad161a67266.png My cells width and height are both 188 if that means anything (This is set by collectionView) I Do want the width and height to be the same also...

CollectionView, change Cell color

ios,swift,collectionview
i have collectionView with 52 images in it, on didSelectItemAtIndexPath method i have this code: var cell : UICollectionViewCell = collectionView.cellForItemAtIndexPath(indexPath)! cell.backgroundColor = UIColor.greenColor() background color is changing, BUT, when i scroll down my collectionView, another cell there have green background color, I assume collectionView doing some redrawing and some...

Get item by ID in a CollectionView

c#,wpf,collectionview
I'm writing a WPF application connected to a local Access database. In one of the application screens, one table data (named Service) is shown in individual textboxes, like a form, and the user can navigate through records, create new ones, delete, edit or search. Everything is done on the same...

Bacbone Marionette how to get access to an element in which the view is wrapped up?

jquery,backbone.js,marionette,collectionview
I have CollectionView which has tagName and Id/tagClass. I heed apply plugin to 'tagName' element on onRender event. I can't access it through this.el. var ListView = Backbone.Marionette.CollectionView.extend({ tagName:'article', className:'myClass', id:'myID', childView: ListItemView, onRender: function () { (access to view tagName el).readmore({ speed: 500 }); } }); ...

How to access collectionView from a different class in Swift

ios,class,swift,collectionview
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 since it was declared in another class/viewController. My CollectionView Class: //this is...

Collection View Layout Issue

ios,xcode,layout,collectionview,flowlayout
I have used collection view to create the following layout: I have set the size of the layout using sizeForItemAtIndexPath method of collection view and using flow layout but what I could achieve is: I tried reducing the width and height but even then I cannot achieve the two elements...

Multiple collectionView in a UIViewController - IOS swift

ios,swift,collectionview
I tried many days to realise this: I want to add in my UIViewController two different CollectionView. For example I want to put images in these collectionView Each CollectionView use its own images. Is this possible? I will be very happy if somebody can give me a hand. :)...

How to design multiple full-screen prototype cells using xcode's interface builder?

ios,xcode,collectionview
My app needs to horizontally scroll/page between different full-screen "views" or cells, where different views or cells have different layouts. The underlying model suggests that a collection view suits well, since the different pages are all inter-related in that they edit different items belonging to the same group. But I...

How to access cells that will appear, before they appear?

ios,swift,collectionview
I have a collection view, but cell that are not appearing in the screen i cannot access, 1...5 ok, and those at index parth row 6, 7, and they have to be scrolled to bee seen func Action0(sender: UIButton!) { for i in 0...7 { if i != 0{ var...

setOnClickFillInIntent Error Handling

android,android-pendingintent,android-appwidget,collectionview
I have made an appWidget with a collection view. And in order to handle a click event on each view of the collection view, I used 'setPendingIntentTemplate' and 'setOnClickFillInIntent'. It is working fine in a normal case. It opens up the target activity by sending the intent upon click. But...

WPF Listbox Collection custom sort

wpf,sorting,listbox,compare,collectionview
I have a listbox DropPrice MyPrice Price1 Price2 I want to sort it like this Price1 Price2 DropPrice MyPrice I mean, if there's an item that starts with the sequence "price", it gets priority, else the smallest string should get the priority. My source code: var lcv = (ListCollectionView)(CollectionViewSource.GetDefaultView(_itemsSource)); var...

UICollectionViewCell change position

ios,objective-c,uicollectionview,uicollectionviewcell,collectionview
By default, when you create a collection view , items are top and bottom margins are generated. I want to move the cell position. (Center to bottom) Is there any way to solve ? - (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath { return CGSizeMake(collectionView.frame.size.width / 2.2, collectionView.frame.size.height-60); } ...

Auto Layout size of CollectionViewCell in relation to CollectionView

ios,xcode,swift,collectionview
I have a CollectionViewCell placed in a CollectionView. The size of the CollectionView is set via Auto Layout and can change at times. I want to (programmatically) set constraints on my CollectionView, so that the size of the CollectionViewCell is responsive to the size of the CollectionView (Say the width...

Issue on Collection View performBatchUpdate when animating a height change of an Item

animation,height,collectionview
There is a problem when using performBatchUpdates method to animate a height change on a CollectionViewCell when this results on new items appearing on-screen that were off-screen before the animation ran. In this case scenario the items initially positioned off-screen appear at their final location instead of being animated there.

Collection View Button Action (Cocoa, Xcode)

xcode,cocoa,button,collectionview
In XIB file I have a collection view which contains a button. In awake from Nib i have defined several of buttons with different images. So the application basically looks like a finder, but does not perform any actions yet. What I want to do now, is that when pressing...