problem about uicollectionviewcell-Collection of common programming errors
Zaakk
objective-c ios uiwebview uicollectionview uicollectionviewcell
Please help me, how can I save state of UICollectionViewCell. For example: I have cells with UIWebView and when I dequeueReusableCellWithReuseIdentifier:forIndexPath: returned wrong cell, not for this indexPath and after it UIWebView content will reloaded for correct indexPath with twitches. Thanks!- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {NewsCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuse
RynoB
objective-c ios uicollectionview uicollectionviewcell
I’m currently facing a strange issue with UICollectionViewCell when adding subviews to it but only during certain situations.Here is the scenario:I have a “container” view which conforms to a very specific protocol (ADGControl) with a nested view, typically a UIKit control subclass I.e MyCustomTextField : UITextField for custom controls.The “container” view exposes a property called “innerControlView” which holds a strong reference to the custom control which is what I’m trying to add as a sub v
André Dion
iphone ios objective-c uicollectionview uicollectionviewcell
I am using MVC pattern in that there is one view controller in which i have UICollectionview, which is loaded with UICollectionViewCell.xib.For example I have ‘A’ as View Controller which get data from Singleton class ‘B’ which in turns calls the respective class at runtime eg:- ‘C’ and ‘D’ class which returns UICollectionViewCell object to ‘A’ view controller. Is this possible and I want that cell to be loaded one by one in UICollectionView?
Hironobu Sano
ios uicollectionview uicollectionviewcell fragmentpageradapter container-view
I created containerview. I want to paging in the horizontal mode of UICollectionView it.(Like a FragmentPager of Android) However, error occurs if you put in the ContainerView UICollectionViewCell. (Storyboard: error: Illegal Configuration: Container Views cannot be placed in elements that are repeated at runtime) What do I do now?
Glauco
ios uicollectionview uicollectionviewcell
I have a custom UICollectionViewCell whose content is also a collection and I would like to use UICollectionView to display its content. Is this possible? How would I accomplish this? I made the custom UICollectionViewCell also inheriting from UICollectionViewDataSource and define a UICollectionView internal property but things are not working as expected. Any idea?
rmaddy
ios objective-c uicollectionview uicollectionviewcell
I followed this tutorial to create a UICollectionView. I copied their code with no problem, however when I tried it, it crashes- (void)viewDidLoad {[super viewDidLoad];gridImages = [[NSMutableArray alloc]init];[gridImages addObject: @”test.jpg”];[gridImages addObject: @”test.jpg”];[gridImages addObject: @”test.jpg”];[gridImages addObject: @”test.jpg”];[gridImages addObject: @”test.jpg”];}- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section{retu
melps
ios uicollectionview uicollectionviewcell
I have a simple UICollectionView based app – one UICollectionView and a NSMutableArray based data model for simplicity.I can delete cells with no problem via the didSelectItemAtIndexPath: delegate method:-(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath{[self.data removeObjectAtIndex:[indexPath row]];[self.collectionView deleteItemsAtIndexPaths:@[indexPath]]; }However, I’m trying to add a delete option via a UIMenuController in a UICollect
Rameez Hussain
objective-c ios7 uicollectionview uigesturerecognizer uicollectionviewcell
I have a UICollectionView on iOS7 which crashes randomly when intense scrolling. I enabled zombies and found that it gives me an error saying:*** -[NSIndexPath section]: message sent to deallocated instance 0x17dbc970I believe this is due to an Apple error described here. Apparently, the app crashes when someone highlights a cell while scrolling fast, and then the OS tries to unhighlight it when it moves off screen, when it ceases to exist. The proposed solution is to disable the userInteraction
Nick
objective-c performance uicollectionview rubymotion uicollectionviewcell
I have a UICollectionView in my app, and each cell is a UIImageView and some text labels. The problem is that when I have the UIImageViews displaying their images, the scrolling performance is terrible. It’s nowhere near as smooth as the scrolling experience of a UITableView or even the same UICollectionView without the UIImageView.I found this question from a few months ago, and it seems like an answer was found, but it’s written in RubyMotion, and I don’t understand that. I tried to see how to
Avner Barr
ios objective-c uicollectionview uicollectionviewcell xcode-instruments
I have a gallery in my app utilizing a UICollectionView. The cells are approximately 70,70 size. I am using ALAssets from the ALAssetLibrary in the gallery which I have stored in a list. I am using the usual pattern for populating the cells:-(UICollectionViewCell*)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {mycell = [collectionView dequeueReusableCellWithReuseIdentifier:cellIdentifier forIndexPath:indexPath];mycell.imageView.image = [[UIImag
rmaddy
ios uicollectionview uicollectionviewcell
App crash and give following error message Terminating app due to uncaught exception’NSInternalInconsistencyException’, reason: ‘-[UICollectionViewController loadView]loaded the “RecipeCollectionViewController” nib but didn’t get a UICollectionView.
not really Jake
ios constraints uicollectionview uicollectionviewcell sdwebimage
I have a UICollectionView with a lot of cells that contain a UIImageView. I use SDWebImage to load images into them.When I scroll really fast, the application crashes. LLDB doesn’t do me any good, and the device gives me the following crashlog: myapp crashlog (.txt)All I can draw from this is that an enumeration crash occurs when updating constraints. This, however, isn’t directly triggered by me. Can anybody give me a hint on how to proceed from here? I can’t get much sensible information out o
verma
iphone ios uicollectionview uicollectionviewcell uicollectionviewlayout
I have a collections view and the view works fine when I load the data initially, but crashes when I try to reload it. take a look at the reload thats happening on the method – scrollViewDidEndDeceleratingand the error is -[FeedCollectionViewCell release]: message sent to deallocated instance 0x800d6f70here is the code. This the Controller@interface MyViewController : UIViewController <UICollectionViewDataSource,UICollectionViewDelegate,UICollectionViewDelegateFlowLayout, UIScrollViewDelega
MaVRoSCy
nsindexpath uicollectionview uicollectionviewcell
Hello I am having trouble getting a custom object at the index path of the UICollectionView… Below is my code.I am getting the crash [Player firstName:]: unrecognized selector sent to instanceAny suggestions?- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath { BenchCollectionCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:CollectionCell forIndexPath:indexPath]; [cell setFrame:CGRectMake(0, 4, 120,
Krunal
ios iphone ipad uicollectionview uicollectionviewcell
I have implemented Custom CollectionView but when i run my app it crashes and shows, ERROR : [UICollectionViewCell Mylabel]: unrecognized selector sent to instance…Here is my code snippet,- (void)viewDidLoad {[super viewDidLoad];[self.collectionView registerClass:[UICollectionViewCell class] forCellWithReuseIdentifier:@”cvCell”]; }- (NSInteger)collectionView:(UICollectionView *)view numberOfItemsInSection:(NSInteger)section { // No of Rows..CGSize result = [[UIScreen mainScreen] bounds].size;i
HighFlyingFantasy
ios uicollectionview uicollectionviewcell
I’m trying to use a UICollectionView in collaboration with a UICollectionViewCell to display thumbnails of images. The UICollectionViewCell’s used in my app are custom (simplistic) subclasses: #import “MemeCell.h”@implementation MemeCell- (id)initWithFrame:(CGRect)frame {self = [super initWithFrame:frame];if (self) {} return self; }-(void)setThumb:(UIImage *)image {if (_thumb != image) {_thumb = image;}_imageThumb.image = _thumb; }@endAnd in the File’s Owner of my UICollectionView, I use:- (UIC
The Kraken
ios properties uicollectionview uicollectionviewcell
I have a single view controller acting as both the dataSource and delegate for a UICollectionView. – (UICollectionViewCell *)collectionView:(UICollectionView *)cv cellForItemAtIndexPath:(NSIndexPath *)indexPath {PhotoCell *cell = [cv dequeueReusableCellWithReuseIdentifier:@”PIC_CELL” forIndexPath:indexPath];UIImage *photo = [UIImage imageWithData:[[_fetchedImages objectAtIndex:indexPath.row] valueForKey:@”picture”]];if (photo) {cell.photo = photo;}return cell; }In the above method I instantiate
Piero
iphone ios uicollectionview uicollectionviewcell
I’m trying to create a UICollectionViewCell subclass with linked a xib, I have do this: I have create a new xib file and I have add a UICollectionViewCell in it, then I have create this subclass file:@interface MyCell : UICollectionViewCell@property (weak, nonatomic) IBOutlet UILabel *label; @endAlso I have linked in the file owner custom class the MyCell class in interface builder, and I have added a UILabel, then in my UICollectionView viewDidLoad I do this:[self.collectionView registerClass:[
VarunJi
uicollectionview uicollectionviewcell
i am creating a CollectionView app. where i am fetching data from server through JSON string. and my work flow is as followCreated Collection View Cell as ProjectVCollectionViewCell.h, .m, .xib.Code for .h is – @interface ProjectCollectionViewCell : UICollectionViewCell@property (weak, nonatomic) IBOutlet UIImageView *projectImage;@property (weak, nonatomic) IBOutlet UILabel *projectLabel;@endCode for .m is default and synthesized the above 2 variables. and .xib has Collection View Cell with Ima
Civatrix
ios uicollectionview autolayout uicollectionviewcell
I’m subclassing a UICollectionViewCell and doing all the layout in code with auto layout. This is my init method:- (id)initWithFrame:(CGRect)frame{frame = CGRectMake(0, 0, 403, 533);if (self = [super initWithFrame:frame]) {self.translatesAutoresizingMaskIntoConstraints = NO;PBCardPricesViewController *pricesView = [[PBCardPricesViewController alloc] init];[self addSubview:pricesView.view];UIImageView *background = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@”CardBackground”]];[self a
MicRO
ios ios6 uicollectionview uicollectionviewcell
Using a UICollectionView, I’m trying to add another UICollectionViewCell. This first code shows the first Cell and it runs fine. The problem occurs when I’m trying to add another UICollectionViewCell.static NSString *identifier = @”Cell”; // Default CellsUICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:identifier forIndexPath:indexPath]; UIImageView *illustrationImage = (UIImageView *)[cell viewWithTag:100]; illustrationImage.image = [UIImage imageNamed:[stackI
flexaddicted
iphone ios cocoa-touch uicollectionview uicollectionviewcell
I’m trying to setup an UICollectionView. At first I was using the basic UICollectionViewCell, it was working well, the cells were being displayed.Then I created my own collectionViewCell (subclassing UICollectionViewCell), to be able to display an image in the cell. I linked the custom cell in the Storyboard with an identifier and I also specified the right class for it. However, I keep having this error, and I don’t understand why: *** Terminating app due to uncaught exception ‘NSInternalIncon
Xman
ios uicollectionviewcell
Im following a tutorial that connects to the web to fetch data and puts it into core data. Ive set up my UICollectionView with a cell with its identifier but when i run the project i get this in the console:2013-06-23 20:26:17.051 UICollectionView[912:c07] Unknown class MyCellin Interface Builder file. 2013-06-23 20:26:17.055UICollectionView[912:c07] CoreData: error: Serious application error. An exception was caught from the delegate ofNSFetchedResultsController during a call to-controllerDidC
Web site is in building