collectionview

Using CollectionView in UIView with xib file

丶灬走出姿态 提交于 2019-12-17 17:57:11
问题 i'm doing with this, i want to use CollectionView, but i haven't seen prototype cell, and don't know how to use CollectionView in this case, can someone help me ? I try to use like this way but it take alot of time and hard to manage than UICollectionView 回答1: The main way to use UICollectionView is by managing the logic programmatically. First, create a new class which inherits from UICollectionViewCell . Choose if you want to include a xib to easily design your cell: Design your cell with

NSFetchedResultsContollerDelegate for CollectionView

心已入冬 提交于 2019-12-17 15:27:30
问题 I'd like to use the NSFetchedResultsControllerRelegate in a CollectionViewController. Therefore I just changed the method for the TableViewController for the CollectionView. (void)controller:(NSFetchedResultsController *)controller didChangeSection:(id <NSFetchedResultsSectionInfo>)sectionInfo atIndex:(NSUInteger)sectionIndex forChangeType:(NSFetchedResultsChangeType)type { switch(type) { case NSFetchedResultsChangeInsert: [self.collectionView insertSections:[NSIndexSet indexSetWithIndex

WPF ICollectionView Filter Reset

时光总嘲笑我的痴心妄想 提交于 2019-12-13 06:33:12
问题 I have a CollectionView derived from an ObservableCollection : private static ObservableCollection<CalculationViewModel> _calculations; CalculationViewModelsCollection = (CollectionView)CollectionViewSource.GetDefaultView(_calculations); My problem is that, when the result of the filter is nothing, I'd like to clear the filter, and re-filter with other conditions, but the CollectionView is always empty. I tried to reset the filter these ways: CalculationViewModelsCollection.Filter = null;

How to add textfields on uicollection view?

坚强是说给别人听的谎言 提交于 2019-12-13 05:45:54
问题 i am doing a project ,where i have to show a view like this i tried to use table view ,but i was unable to implement ,after that i have decided to implement this with the help of collection view.but nothing fruitful happened .i get frustated here because nothing can happen with my view .these are the text fields added on the view and all are clickable,can anyone help me in this i am a fresher so please help me. 回答1: ////////////////// - (UIView *)tableView:(UITableView *)tableView

Collectionviews move weird when setting constraints

自闭症网瘾萝莉.ら 提交于 2019-12-13 03:55:00
问题 I got three collectionViews in my application. Now I finished it as far as I wanted it to complete. The only problem which I have for several days now are the constraints. I don't know how to explain it in words so I added two pictures of the problem to the question I hope it's understandable. What I currently have: What I want: 回答1: Use UICollectionViewDelegateFlowLayout delegate method to archive this. func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout:

Xamarin Forms: CollectionView is not working in ios

ε祈祈猫儿з 提交于 2019-12-13 03:32:37
问题 I am using CollectionView for the horizontal listview. It is working fine in android but in ios, the items are showing on one top of another. Attaching a screenshot below: XAML <CollectionView HeightRequest="30" SelectionMode="Single" SelectionChanged="ItemTapped" ItemsSource="{Binding Items}" x:Name="collectionview" ItemsLayout="HorizontalList"> <CollectionView.ItemTemplate> <DataTemplate> <StackLayout Margin="5"> <Label TextColor="Black" FontSize="Large" HorizontalTextAlignment="Center"

Swift - how automatically select cell when collectionView first loads up?

时光总嘲笑我的痴心妄想 提交于 2019-12-12 18:18:44
问题 I'm trying to figure out how to programmatically select a cell the moment the collectionView starts up. As in, the default load of the collectionView should have the first cell selected. I'm using shouldSelectItemAtIndexPath for my selection function, so I want to call it for a specific cell index. So far I have tried: collectionView(self.collectionView!, shouldSelectItemAtIndexPath: self.collectionView!.indexPathForCell(CVcellArray.first!)!) In my viewDidLoad function for my custom

Marionette js upgrade 1.x to 2.x breaks my dynamic JQuery UI tab control

↘锁芯ラ 提交于 2019-12-12 04:54:51
问题 After an upgrade from version 1.8.8 to 2.4.1 my dynamic tabs control broke. The new Marionette won't let me do something that the old Marionette would. A JQuery UI tab control expects a certain UI structure. At the core, it essentially wants an unordered list inside a container. Like this: <div id="tabs-container"> <ul id="tabs">//this guy should have li's inside it. They'll become tabs. </ul> <div id="tabs-content"> </div> </div>//end #tabs-container If you call $("tabs-container").tabs() in

CollectionView in TableViewCell scroll isn't smooth in swift3

╄→гoц情女王★ 提交于 2019-12-12 04:31:22
问题 In my project CollectionView in TableViewCell isn't display and I added cell.collectionView.reloadData() in my code. After I added, CollectionView displayed in TableViewCell , but ScrollView isn't smooth. How to solve this problem. If someone have any experience or ideas help me. Thanks. func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: "homecell") as! HomeCategoryRowCell let mainThemeList

how do I change an image by selecting a cell in CollectionView

六眼飞鱼酱① 提交于 2019-12-12 01:57:02
问题 Currently I am working on a project and my product page is like this Here I am using an UIImageView to show the large image and below that I am using a CollectionView to scroll a set of images. I want to change the large image accordingly when I click an image from the CollectionViewCell . As this is the first time I am using this kind of functionality, I am out of clue. Please anybody give me some suggestion. Thank you. 回答1: If every image is in a separate UICollectionViewCell, use override