collectionview

Memory is not released during perform batch updates in CollectionView

你说的曾经没有我的故事 提交于 2020-01-25 09:05:30
问题 I've been working on a project of using two UICollectionView 's I have on that is the MainViewController with full screen cells that scroll horizontally and one that sits on that full screen cell and scrolls vertically. I have a functionality that adds as well as deletes cells. When a user taps and one of the pages of the MainViewController is deleted using the code below the memory that grew as cells were added is still being retained. Is there something Im doing wrong. All of my delegates

Delete button not working, collectionView

家住魔仙堡 提交于 2020-01-24 19:39:05
问题 I have a collectionView with 3 sections and a button on the header to delete each section. I wrote my code but I keep getting this error: fatal error: Index out of range (lldb) But I'm not sure what is going on? Why isn't it working. This is my code: //Global Identifier private let cellIdentifier = "ImageCell" private let headerIdentifier = "Header" class ViewController: UICollectionViewController { //Data Models //Image Arrays var fireImages: [UIImage] = [ UIImage(named: "charizard")!,

Unable to display firebase storage images into a collectionview swift

て烟熏妆下的殇ゞ 提交于 2020-01-24 12:24:09
问题 I need some help I have been scouring the internet for help with displaying my firebase storage images in a CollectionView. I am using UIImagepicker to upload the images to firebase but they are not displaying in my CollectionView. I have tried all different type of ways but nothing has worked. This is my PhotoVC class PhotoVC: UIViewController, UICollectionViewDataSource, UICollectionViewDelegate, UICollectionViewDelegateFlowLayout, UIImagePickerControllerDelegate,

Unable to display firebase storage images into a collectionview swift

做~自己de王妃 提交于 2020-01-24 12:23:49
问题 I need some help I have been scouring the internet for help with displaying my firebase storage images in a CollectionView. I am using UIImagepicker to upload the images to firebase but they are not displaying in my CollectionView. I have tried all different type of ways but nothing has worked. This is my PhotoVC class PhotoVC: UIViewController, UICollectionViewDataSource, UICollectionViewDelegate, UICollectionViewDelegateFlowLayout, UIImagePickerControllerDelegate,

Unable to display firebase storage images into a collectionview swift

那年仲夏 提交于 2020-01-24 12:22:38
问题 I need some help I have been scouring the internet for help with displaying my firebase storage images in a CollectionView. I am using UIImagepicker to upload the images to firebase but they are not displaying in my CollectionView. I have tried all different type of ways but nothing has worked. This is my PhotoVC class PhotoVC: UIViewController, UICollectionViewDataSource, UICollectionViewDelegate, UICollectionViewDelegateFlowLayout, UIImagePickerControllerDelegate,

Swift: didSelectItemAtIndexpath function not work of json

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-16 07:58:31
问题 i have three Controller. in first CategoryCollectionViewController, next listTableViewController and finally has DescriptionCollectionViewController. in Controllers passed json data perfectly. but i got no idea what code i should write in didSelectRowAt_indexPath function of ListTableViewController. The first CategoryCollectionViewController override func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) { let controller1 = ListTableView() controller1

Scroll Multiple UICollectionView with one collectionview IOS

老子叫甜甜 提交于 2020-01-13 05:55:15
问题 I am working on an application in which, I have UITableView and in each cell of uitableview i have uicollectionview scrolling horizontally. Now, What I want is that: When I scroll one collectionview in any direction then all other collectionviews of my table should scroll accordingly in that direction. I have tried using scrollview delegates but it is not working properly. I am stuck in this issue. I have looked on internet but could not found anything yet. Help needed! Thanks 回答1: Ok I've

Scroll Multiple UICollectionView with one collectionview IOS

巧了我就是萌 提交于 2020-01-13 05:55:06
问题 I am working on an application in which, I have UITableView and in each cell of uitableview i have uicollectionview scrolling horizontally. Now, What I want is that: When I scroll one collectionview in any direction then all other collectionviews of my table should scroll accordingly in that direction. I have tried using scrollview delegates but it is not working properly. I am stuck in this issue. I have looked on internet but could not found anything yet. Help needed! Thanks 回答1: Ok I've

Collection View With Fixed Number of Rows and Columns

我怕爱的太早我们不能终老 提交于 2020-01-11 06:23:33
问题 I have a collection view and would like to maintain a consistent number of rows and columns across multiple devices. On an iPhone 6s Plus, 6 items are displayed, but when viewing the app on an iPhone 5s, only four items are displayed. See my layout here: How can I make the collection view display the same items on various devices? 回答1: For Swift 3.0. Ensure you are using autoLayout and implement the UICollectionView sizeForItemAtIndexPath . func collectionView(collectionView: UICollectionView

How do I change the binding of a CollectionView.Source?

ぐ巨炮叔叔 提交于 2020-01-05 07:34:12
问题 Initially I had this code in XAML: <CollectionViewSource x:Name="cSource"> <CollectionViewSource.Source> <Binding Source="{StaticResource NameOfXmlDataProvider}" XPath="letter"/> </CollectionViewSource.Source> <CollectionViewSource> But I wanted to keep a binding object in the C# code, to be able to dynamically alter it's xpath. Currently I have this code: CollectionViewSource viewSource = this.FindResource("cSource") as CollectionViewSource; Binding binding = new Binding( "Source" ); binding